Fix -join-splitedges: my previous "cleanup" broke it.

Working on reducing unit tests.
This won't be enabled unless a subtarget enables misched.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167851 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Trick 2012-11-13 17:37:46 +00:00
parent fc298c76c7
commit 2344abc939

View File

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