From da39b8852cc7ab795f66308fa095169fe018733e Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Tue, 13 Aug 2024 07:30:40 +0200 Subject: [PATCH] Update PassBuilderBindings.cpp --- llvm/lib/Passes/PassBuilderBindings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Passes/PassBuilderBindings.cpp b/llvm/lib/Passes/PassBuilderBindings.cpp index 289be0a1932bfb..10e0d3dfac738d 100644 --- a/llvm/lib/Passes/PassBuilderBindings.cpp +++ b/llvm/lib/Passes/PassBuilderBindings.cpp @@ -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. @@ -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);