mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 18:33:22 +00:00
Exit a search loop when the search goal is found.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109404 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1deeaa6467
commit
e96a6fe351
@ -161,8 +161,10 @@ void DominanceFrontier::splitBlock(BasicBlock *NewBB) {
|
|||||||
bool DominatesPred = false;
|
bool DominatesPred = false;
|
||||||
for (pred_iterator PI = pred_begin(*SetI), E = pred_end(*SetI);
|
for (pred_iterator PI = pred_begin(*SetI), E = pred_end(*SetI);
|
||||||
PI != E; ++PI)
|
PI != E; ++PI)
|
||||||
if (DT.dominates(NewBB, *PI))
|
if (DT.dominates(NewBB, *PI)) {
|
||||||
DominatesPred = true;
|
DominatesPred = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (!DominatesPred)
|
if (!DominatesPred)
|
||||||
Set.erase(SetI++);
|
Set.erase(SetI++);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user