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 | c25d3fe71e8e93dc956b3562785625e7746763f7 (patch) | |
tree | 88760541c4950290a1c7f08330acc4ced4f55b01 /llvm/lib | |
parent | 3b79f55c5f2aabb76cf6fd985faaae757642d55f (diff) | |
download | bcm5719-llvm-c25d3fe71e8e93dc956b3562785625e7746763f7.tar.gz bcm5719-llvm-c25d3fe71e8e93dc956b3562785625e7746763f7.zip |
Cleanup -join-splitedges. Make the loop more obvious.
llvm-svn: 167785
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/RegisterCoalescer.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp index 36f6b358755..7d69176729d 100644 --- a/llvm/lib/CodeGen/RegisterCoalescer.cpp +++ b/llvm/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; } |