Skip to content

Commit ced7451

Browse files
timkalerwsmoses
authored andcommitted
remove print statements
1 parent 1008dd9 commit ced7451

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

enzyme/Enzyme/EnzymeLogic.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1960,12 +1960,9 @@ Function* CreatePrimalAndGradient(Function* todiff, const std::set<unsigned>& co
19601960
llvm::errs() << "Forcibly loading cached reads " << *op << "\n";
19611961
IRBuilder<> BuilderZ(op->getNextNode());
19621962
inst = cast<Instruction>(gutils->addMalloc(BuilderZ, inst));
1963-
llvm::errs() << "before cast inst :" << *inst << "\n";
1964-
llvm::errs() << "Cast successful " << "\n";
1965-
//llvm::errs() << "Forcibly loading cached reads after addmalloc " << *op << "\n";
1966-
// NOTE(TFK): changes here.
19671963
if (inst != op) {
1968-
op = nullptr;//cast<LoadInst>(inst);
1964+
// Set to nullptr since op should never be used after invalidated through addMalloc.
1965+
op = nullptr;
19691966
gutils->nonconstant_values.insert(inst);
19701967
gutils->nonconstant.insert(inst);
19711968
gutils->originalInstructions.insert(inst);

0 commit comments

Comments
 (0)