aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/CodeGen/RegisterCoalescer.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/CodeGen/RegisterCoalescer.cpp b/lib/CodeGen/RegisterCoalescer.cpp
index 36f6b35875..7d69176729 100644
--- a/lib/CodeGen/RegisterCoalescer.cpp
+++ b/lib/CodeGen/RegisterCoalescer.cpp
@@ -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;
}