mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
Revert 91280-91283, 91286-91289, 91291, 91293, 91295-91296. It apparently introduced a non-deterministic behavior in the optimizer somewhere.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91598 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -53,7 +53,7 @@ static bool containsAddRecFromDifferentLoop(const SCEV *S, Loop *L) {
|
||||
if (newLoop == L)
|
||||
return false;
|
||||
// if newLoop is an outer loop of L, this is OK.
|
||||
if (newLoop->contains(L->getHeader()))
|
||||
if (!LoopInfo::isNotAlreadyContainedIn(L, newLoop))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@ -307,7 +307,6 @@ bool IVUsers::runOnLoop(Loop *l, LPPassManager &LPM) {
|
||||
for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I)
|
||||
AddUsersIfInteresting(I);
|
||||
|
||||
Processed.clear();
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -370,7 +369,7 @@ void IVUsers::dump() const {
|
||||
void IVUsers::releaseMemory() {
|
||||
IVUsesByStride.clear();
|
||||
StrideOrder.clear();
|
||||
IVUses.clear();
|
||||
Processed.clear();
|
||||
}
|
||||
|
||||
void IVStrideUse::deleted() {
|
||||
|
Reference in New Issue
Block a user