[llvm] [CodeGen] Allow `CodeGenPassBuilder` to add module pass after function pass (PR #77084)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 10 19:57:53 PST 2024


================
@@ -627,8 +615,8 @@ void CodeGenPassBuilder<Derived>::addIRPasses(AddIRPass &addPass) const {
 
   // Run loop strength reduction before anything else.
   if (getOptLevel() != CodeGenOptLevel::None && !Opt.DisableLSR) {
-    addPass(createFunctionToLoopPassAdaptor(
-        LoopStrengthReducePass(), /*UseMemorySSA*/ true, Opt.DebugPM));
+    addPass(createFunctionToLoopPassAdaptor(LoopStrengthReducePass(),
+                                            /*UseMemorySSA*/ true));
----------------
arsenm wrote:

Something weird happened here with whitespace? Is GitHub showing tabs? 

https://github.com/llvm/llvm-project/pull/77084


More information about the llvm-commits mailing list