We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 932d925 commit bea9d39Copy full SHA for bea9d39
enzyme/Enzyme/AdjointGenerator.h
@@ -2295,13 +2295,13 @@ class AdjointGenerator
2295
return;
2296
}
2297
2298
- eraseIfUnused(II);
2299
SmallVector<Value *, 2> orig_ops(II.getNumOperands());
2300
2301
for (unsigned i = 0; i < II.getNumOperands(); ++i) {
2302
orig_ops[i] = II.getOperand(i);
2303
2304
handleAdjointForIntrinsic(II.getIntrinsicID(), II, orig_ops);
+ eraseIfUnused(II);
2305
2306
2307
void handleAdjointForIntrinsic(Intrinsic::ID ID, llvm::Instruction &I,
0 commit comments