Skip to content

Commit

Permalink
Subnull even with runtime activity (EnzymeAD#2094)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Sep 29, 2024
1 parent 3bc3ad4 commit 1b63f1c
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 1b63f1c

Please sign in to comment.