[clang] [flang] [llvm] add -floop-fuse to clang and flang (PR #142686)

Madhur Amilkanthwar via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 28 07:05:05 PDT 2025


================
@@ -518,6 +524,9 @@ PassBuilder::buildO1FunctionSimplificationPipeline(OptimizationLevel Level,
 
   invokeLoopOptimizerEndEPCallbacks(LPM2, Level);
 
+  if (PTO.LoopFuse)
+    FPM.addPass(LoopFusePass());
+
----------------
madhur13490 wrote:

I have moved it to the function simplification pipeline. LoopFusion is a function pass. I am open to change the place if this doesn't feel alright.

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


More information about the llvm-commits mailing list