[llvm] [LoopInterchange] Reject interchange when a freeze would move or be cloned (PR #213309)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 4 02:20:34 PDT 2026


================
@@ -813,6 +816,65 @@ bool LoopInterchangeLegality::containsUnsafeInstructions(BasicBlock *BB,
   });
 }
 
+FreezeInst *
+LoopInterchangeLegality::findFreezeInReNestedBlocks(Loop *OuterLoop,
+                                                    Loop *InnerLoop) const {
----------------
MattPD wrote:

Both freeze helpers are now static free functions. Thank you for the suggestion!

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


More information about the llvm-commits mailing list