Skip to content

Commit

Permalink
disable memory passes
Browse files Browse the repository at this point in the history
  • Loading branch information
vimarsh6739 committed Nov 15, 2024
1 parent 6d36573 commit 7187334
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions enzyme/Enzyme/Enzyme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3409,14 +3409,14 @@ void augmentPassBuilder(llvm::PassBuilder &PB) {
MPM.addPass(llvm::AlwaysInlinerPass());
FunctionPassManager OptimizerPM;
FunctionPassManager OptimizerPM2;
#if LLVM_VERSION_MAJOR >= 16
OptimizerPM.addPass(llvm::GVNPass());
OptimizerPM.addPass(llvm::SROAPass(llvm::SROAOptions::PreserveCFG));
#else
OptimizerPM.addPass(llvm::GVNPass());
OptimizerPM.addPass(llvm::SROAPass());
#endif
MPM.addPass(createModuleToFunctionPassAdaptor(std::move(OptimizerPM)));
// #if LLVM_VERSION_MAJOR >= 16
// OptimizerPM.addPass(llvm::GVNPass());
// OptimizerPM.addPass(llvm::SROAPass(llvm::SROAOptions::PreserveCFG));
// #else
// OptimizerPM.addPass(llvm::GVNPass());
// OptimizerPM.addPass(llvm::SROAPass());
// #endif
// MPM.addPass(createModuleToFunctionPassAdaptor(std::move(OptimizerPM)));

#ifdef ENZYME_ENABLE_HERBIE

Expand Down

0 comments on commit 7187334

Please sign in to comment.