Fix -join-splitedges: my previous "cleanup" broke it.
authorAndrew Trick <atrick@apple.com>
Tue, 13 Nov 2012 17:37:46 +0000 (17:37 +0000)
committerAndrew Trick <atrick@apple.com>
Tue, 13 Nov 2012 17:37:46 +0000 (17:37 +0000)
Working on reducing unit tests.
This won't be enabled unless a subtarget enables misched.

llvm-svn: 167851

llvm/lib/CodeGen/RegisterCoalescer.cpp

index 8e6533c..5ec0aec 100644 (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;