projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2b2469
)
Cleanup -join-splitedges. Make the loop more obvious.
author
Andrew Trick
<atrick@apple.com>
Mon, 12 Nov 2012 23:59:48 +0000
(23:59 +0000)
committer
Andrew Trick
<atrick@apple.com>
Mon, 12 Nov 2012 23:59:48 +0000
(23:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167785
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/RegisterCoalescer.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/RegisterCoalescer.cpp
b/lib/CodeGen/RegisterCoalescer.cpp
index 36f6b35875523498c8d72608a75ca5d3eebd4664..7d69176729dca32f07530420a91385860810f831 100644
(file)
--- 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;
}