We can split around loops with multiple exits now.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 5 Oct 2010 22:19:35 +0000 (22:19 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 5 Oct 2010 22:19:35 +0000 (22:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115696 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SplitKit.cpp

index bb372403a6c3d953809ba803270d5eccf07f7152..1864e3781321d243840504c49a5495c57ee435a8 100644 (file)
@@ -251,12 +251,6 @@ const MachineLoop *SplitAnalysis::getBestSplitLoop() {
     const MachineLoop *Loop = I->first;
     getLoopBlocks(Loop, Blocks);
 
-    // FIXME: We need an SSA updater to properly handle multiple exit blocks.
-    if (Blocks.Exits.size() > 1) {
-      DEBUG(dbgs() << "  multiple exits from " << *Loop);
-      continue;
-    }
-
     LoopPtrSet *LPS = 0;
     switch(analyzeLoopPeripheralUse(Blocks)) {
     case OutsideLoop: