mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-15 12:30:22 +00:00
Reverting 49056 due to the build being broken.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49060 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ffe2eb0120
commit
48afd9f8a9
@ -232,8 +232,8 @@ bool LoopIndexSplit::runOnLoop(Loop *IncomingLoop, LPPassManager &LPM_Ref) {
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
// First see if it is possible to eliminate loop itself or not.
|
// First see if it is possible to eliminate loop itself or not.
|
||||||
for (SmallVector<SplitInfo, 4>::iterator SI = SplitData.begin();
|
for (SmallVector<SplitInfo, 4>::iterator SI = SplitData.begin(),
|
||||||
SI != SplitData.end();) {
|
E = SplitData.end(); SI != E;) {
|
||||||
SplitInfo &SD = *SI;
|
SplitInfo &SD = *SI;
|
||||||
ICmpInst *CI = dyn_cast<ICmpInst>(SD.SplitCondition);
|
ICmpInst *CI = dyn_cast<ICmpInst>(SD.SplitCondition);
|
||||||
if (SD.SplitCondition->getOpcode() == Instruction::And) {
|
if (SD.SplitCondition->getOpcode() == Instruction::And) {
|
||||||
@ -244,7 +244,8 @@ bool LoopIndexSplit::runOnLoop(Loop *IncomingLoop, LPPassManager &LPM_Ref) {
|
|||||||
return Changed;
|
return Changed;
|
||||||
} else {
|
} else {
|
||||||
SmallVector<SplitInfo, 4>::iterator Delete_SI = SI;
|
SmallVector<SplitInfo, 4>::iterator Delete_SI = SI;
|
||||||
SI = SplitData.erase(Delete_SI);
|
++SI;
|
||||||
|
SplitData.erase(Delete_SI);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (CI && CI->getPredicate() == ICmpInst::ICMP_EQ) {
|
else if (CI && CI->getPredicate() == ICmpInst::ICMP_EQ) {
|
||||||
@ -255,7 +256,8 @@ bool LoopIndexSplit::runOnLoop(Loop *IncomingLoop, LPPassManager &LPM_Ref) {
|
|||||||
return Changed;
|
return Changed;
|
||||||
} else {
|
} else {
|
||||||
SmallVector<SplitInfo, 4>::iterator Delete_SI = SI;
|
SmallVector<SplitInfo, 4>::iterator Delete_SI = SI;
|
||||||
SI = SplitData.erase(Delete_SI);
|
++SI;
|
||||||
|
SplitData.erase(Delete_SI);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
++SI;
|
++SI;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user