mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-08 05:26:50 +00:00
No really, clear predcessors states.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37581 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e37e24331c
commit
bc198eeba6
@ -662,13 +662,11 @@ void IfConverter::ReTryPreds(MachineBasicBlock *BB) {
|
|||||||
for (MachineBasicBlock::pred_iterator PI = BB->pred_begin(),
|
for (MachineBasicBlock::pred_iterator PI = BB->pred_begin(),
|
||||||
E = BB->pred_end(); PI != E; ++PI) {
|
E = BB->pred_end(); PI != E; ++PI) {
|
||||||
BBInfo &PBBI = BBAnalysis[(*PI)->getNumber()];
|
BBInfo &PBBI = BBAnalysis[(*PI)->getNumber()];
|
||||||
if (PBBI.IsDone)
|
if (PBBI.IsDone || PBBI.BB == BB)
|
||||||
continue;
|
continue;
|
||||||
if (PBBI.Kind == ICNotClassfied) {
|
PBBI.Kind = ICNotClassfied;
|
||||||
assert(!PBBI.IsEnqueued && "Unexpected");
|
PBBI.IsAnalyzed = false;
|
||||||
PBBI.IsAnalyzed = false;
|
PBBI.IsEnqueued = false;
|
||||||
} else if (PBBI.IsEnqueued && PBBI.BB != BB)
|
|
||||||
PBBI.IsEnqueued = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -769,8 +767,11 @@ bool IfConverter::IfConvertTriangle(BBInfo &BBI) {
|
|||||||
if (PBB == BBI.BB)
|
if (PBB == BBI.BB)
|
||||||
continue;
|
continue;
|
||||||
BBInfo &PBBI = BBAnalysis[PBB->getNumber()];
|
BBInfo &PBBI = BBAnalysis[PBB->getNumber()];
|
||||||
if (PBBI.IsEnqueued)
|
if (PBBI.IsEnqueued) {
|
||||||
|
PBBI.Kind = ICNotClassfied;
|
||||||
|
PBBI.IsAnalyzed = false;
|
||||||
PBBI.IsEnqueued = false;
|
PBBI.IsEnqueued = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user