Skip to content

Commit

Permalink
Disable runtime unrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
pchintalapudi committed Oct 23, 2022
1 parent 050b87b commit 11af92e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ void buildFullPipeline(ModulePassManager &MPM, PassBuilder *PB, OptimizationLeve
//We don't know if the loop end callbacks support MSSA
FPM.addPass(createFunctionToLoopPassAdaptor(std::move(LPM), /*UseMemorySSA = */false));
}
FPM.addPass(LoopUnrollPass());
FPM.addPass(LoopUnrollPass(LoopUnrollOptions().setRuntime(false)));
JULIA_PASS(FPM.addPass(AllocOptPass()));
FPM.addPass(SROAPass());
FPM.addPass(InstSimplifyPass());
Expand Down Expand Up @@ -535,7 +535,7 @@ PIC->addClassToPassName(decltype(CREATE_PASS)::name(), NAME);
return PIC;
}

FunctionAnalysisManager createFAM(OptimizationLevel O, TargetIRAnalysis analysis, const Triple &triple) {
FunctionAnalysisManager createFAM(OptimizationLevel O, const Triple &triple) {

FunctionAnalysisManager FAM;
// Register the AA manager first so that our version is the one used.
Expand All @@ -550,7 +550,6 @@ PIC->addClassToPassName(decltype(CREATE_PASS)::name(), NAME);
return AA;
});
// Register our TargetLibraryInfoImpl.
FAM.registerPass([&] { return llvm::TargetIRAnalysis(analysis); });
FAM.registerPass([&] { return llvm::TargetLibraryAnalysis(llvm::TargetLibraryInfoImpl(triple)); });
return FAM;
}
Expand All @@ -570,7 +569,7 @@ NewPM::NewPM(std::unique_ptr<TargetMachine> TM, OptimizationLevel O, Optimizatio
PB(this->TM.get(), PipelineTuningOptions(), None, PIC.get()),
MPM(createMPM(PB, O, options)), O(O) {}

AnalysisManagers::AnalysisManagers(TargetMachine &TM, PassBuilder &PB, OptimizationLevel O) : LAM(), FAM(createFAM(O, TM.getTargetIRAnalysis(), TM.getTargetTriple())), CGAM(), MAM() {
AnalysisManagers::AnalysisManagers(TargetMachine &TM, PassBuilder &PB, OptimizationLevel O) : LAM(), FAM(createFAM(O, TM.getTargetTriple())), CGAM(), MAM() {
PB.registerLoopAnalyses(LAM);
PB.registerFunctionAnalyses(FAM);
PB.registerCGSCCAnalyses(CGAM);
Expand Down

0 comments on commit 11af92e

Please sign in to comment.