Skip to content

Commit

Permalink
Subnull even with runtime activity
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Sep 29, 2024
1 parent 3bc3ad4 commit d4c7161
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions enzyme/Enzyme/GradientUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5744,10 +5744,10 @@ Value *GradientUtils::invertPointerM(Value *const oval, IRBuilder<> &BuilderM,
for (int i = 0; i < 2; i++) {
auto op = arg->getOperand(i);
bool subnull = nullShadow;
auto vd = TR.query(op);
if (!TR.anyFloat(op))
subnull = false;
if (!runtimeActivity && !isa<InsertValueInst>(op)) {
auto vd = TR.query(op);
if (!TR.anyFloat(op))
subnull = false;
if (isConstantValue(op)) {
if (TR.anyPointer(op) && vd[{-1, -1}] != BaseType::Integer) {
if (!isa<UndefValue>(op) && !isa<ConstantPointerNull>(op)) {
Expand Down

0 comments on commit d4c7161

Please sign in to comment.