Cleanup -join-splitedges. Make the loop more obvious.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167785 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Trick 2012-11-12 23:59:48 +00:00
parent b2b2469a91
commit 43736c7cfa

View File

@ -234,11 +234,8 @@ static bool isSplitEdge(const MachineBasicBlock *MBB) {
for (MachineBasicBlock::const_iterator MII = MBB->begin(), E = MBB->end();
MII != E; ++MII) {
if (MII->isCopyLike())
continue;
if (MII->isUnconditionalBranch())
continue;
return false;
if (!MII->isCopyLike() || !MII->isUnconditionalBranch())
return false;
}
return true;
}