[llvm] [IRCE] Check loop clone legality before attempting to do so (PR #151062)
Keno Fischer via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 21 02:47:38 PDT 2026
================
@@ -3358,19 +3358,10 @@ static bool collectUnswitchCandidatesWithInjections(
return Found;
}
-static bool isSafeForNoNTrivialUnswitching(Loop &L, LoopInfo &LI) {
- if (!L.isSafeToClone())
+static bool isSafeForNoNTrivialUnswitching(const DominatorTree &DT, Loop &L,
+ LoopInfo &LI) {
+ if (!L.isSafeToCloneConditionally(DT))
----------------
Keno wrote:
Split as requested
https://github.com/llvm/llvm-project/pull/151062
More information about the llvm-commits
mailing list