mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-03 14:21:30 +00:00
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
This commit is contained in:
@@ -234,10 +234,7 @@ static bool isSplitEdge(const MachineBasicBlock *MBB) {
|
|||||||
|
|
||||||
for (MachineBasicBlock::const_iterator MII = MBB->begin(), E = MBB->end();
|
for (MachineBasicBlock::const_iterator MII = MBB->begin(), E = MBB->end();
|
||||||
MII != E; ++MII) {
|
MII != E; ++MII) {
|
||||||
if (MII->isCopyLike())
|
if (!MII->isCopyLike() || !MII->isUnconditionalBranch())
|
||||||
continue;
|
|
||||||
if (MII->isUnconditionalBranch())
|
|
||||||
continue;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user