Skip to content

Commit

Permalink
Update PassBuilderBindings.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt authored Aug 13, 2024
1 parent f92c590 commit da39b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Passes/PassBuilderBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ LLVMErrorRef LLVMRunPasses(LLVMModuleRef M, const char *Passes,
FunctionAnalysisManager FAM;
CGSCCAnalysisManager CGAM;
ModuleAnalysisManager MAM;
PB.registerLoopAnalyses(LAM);
if (PassOpts->AAPipeline) {
// If we have a custom AA pipeline, we need to register it _before_ calling
// registerFunctionAnalyses, or the default alias analysis pipeline is used.
Expand All @@ -74,6 +73,7 @@ LLVMErrorRef LLVMRunPasses(LLVMModuleRef M, const char *Passes,
}
FAM.registerPass([&] { return std::move(AA); });
}
PB.registerLoopAnalyses(LAM);
PB.registerFunctionAnalyses(FAM);
PB.registerCGSCCAnalyses(CGAM);
PB.registerModuleAnalyses(MAM);
Expand Down

0 comments on commit da39b88

Please sign in to comment.