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

Tarun Prabhu via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 29 06:41:45 PDT 2025


================
@@ -1332,6 +1333,7 @@ runThinLTOBackend(CompilerInstance &CI, ModuleSummaryIndex *CombinedIndex,
   Conf.SampleProfile = std::move(SampleProfile);
   Conf.PTO.LoopUnrolling = CGOpts.UnrollLoops;
   Conf.PTO.LoopInterchange = CGOpts.InterchangeLoops;
+  Conf.PTO.LoopFuse = CGOpts.FuseLoops;
----------------
tarunprabhu wrote:

NIT
```suggestion
  Conf.PTO.LoopFusion = CGOpts.FuseLoops;
```

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


More information about the llvm-commits mailing list