[llvm] [LoopFusion] Extending SIV to handle separate loops (PR #146383)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 24 11:29:05 PDT 2025


================
@@ -1371,6 +1373,33 @@ struct LoopFuser {
                           << "\n");
       }
 #endif
+      unsigned Levels = DepResult->getLevels();
+      unsigned SameSDLevels = DepResult->getSameSDLevels();
+      unsigned CurLoopLevel = FC0.L->getLoopDepth();
+
+      bool OuterEqDir = true;
----------------
CongzheUalberta wrote:

I suggest to rename `OuterEqDir` to something like `sameOuterIndex` or `sameOuterIterSpace` that is more descriptive. 

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


More information about the llvm-commits mailing list