[llvm] [Transforms] Refactor CreateControlFlowHub (PR #103013)

Sameer Sahasrabuddhe via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 20 21:10:39 PDT 2024


================
@@ -140,53 +141,43 @@ static void restoreSSA(const DominatorTree &DT, const Loop *L,
   }
 }
 
+static bool isExitBlock(Loop *L, BasicBlock *Succ, LoopInfo &LI) {
+  Loop *SL = LI.getLoopFor(Succ);
+  if (SL == L || L->contains(SL))
+    return false;
+  return true;
----------------
ssahasra wrote:

Done.

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


More information about the llvm-commits mailing list