Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
vimarsh6739 committed Nov 15, 2024
1 parent e714918 commit a6f7609
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions enzyme/Enzyme/Enzyme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ using namespace llvm;
#define DEBUG_TYPE "lower-enzyme-intrinsic"

llvm::cl::opt<bool>
EnzymeDisablePreOpt("enzyme-disable-preopt", cl::init(true), cl::Hidden,
EnzymeDisablePreOpt("enzyme-disable-preopt", cl::init(false), cl::Hidden,
cl::desc("Do not run any pre-processing passes"));

llvm::cl::opt<bool> EnzymeEnable("enzyme-enable", cl::init(true), cl::Hidden,
Expand Down Expand Up @@ -3423,7 +3423,7 @@ void augmentPassBuilder(llvm::PassBuilder &PB) {
// All of these ablations are designed to be run at -O0
FunctionPassManager herbieFPM;
if (FPOptExtraMemOpt) {
llvm::dbgs() << "Running mem2reg" << "\n";
// llvm::dbgs() << "Running mem2reg" << "\n";
herbieFPM.addPass(llvm::PromotePass());
}

Expand Down Expand Up @@ -3452,7 +3452,7 @@ void augmentPassBuilder(llvm::PassBuilder &PB) {
herbieFPM.addPass(llvm::GVNPass());
}

if (FPOptExtraPreReassoc || FPOptExtraIfConversion || FPOptExtraPreCSE)
if ( FPOptExtraMemOpt|| FPOptExtraPreReassoc || FPOptExtraIfConversion || FPOptExtraPreCSE)
MPM.addPass(createModuleToFunctionPassAdaptor(std::move(herbieFPM)));

if (EnzymeEnableFPOpt)
Expand Down

0 comments on commit a6f7609

Please sign in to comment.