diff options
author | Andrew Trick <atrick@apple.com> | 2012-11-12 23:59:48 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-11-12 23:59:48 +0000 |
commit | 43736c7cfaea3b0c3e2660b9cd5c01e306f7c0df (patch) | |
tree | 0532b8842e2abd360b865f33aa9a9382de06dc84 /lib | |
parent | b2b2469a9178f7e22cd7a69f3093e54d67d6b712 (diff) |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/RegisterCoalescer.cpp | 7 |
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; } |