We can split around loops with multiple exits now.

llvm-svn: 115696
This commit is contained in:
Jakob Stoklund Olesen 2010-10-05 22:19:35 +00:00
parent 8137fd6975
commit 592949c742

View 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: