mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
Revert r90107, fixing test/Transforms/GVN/2009-11-29-ReverseMap.ll and the
llvm-gcc build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90113 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
526bc31cee
commit
f58e86d762
@ -1156,21 +1156,8 @@ getNonLocalPointerDepFromBB(Value *Pointer, uint64_t PointeeSize,
|
|||||||
// that predecessor. We can still do PRE of the load, which would insert
|
// that predecessor. We can still do PRE of the load, which would insert
|
||||||
// a computation of the pointer in this predecessor.
|
// a computation of the pointer in this predecessor.
|
||||||
if (PredPtr == 0) {
|
if (PredPtr == 0) {
|
||||||
// Add the entry to the Result list.
|
Result.push_back(NonLocalDepEntry(Pred,
|
||||||
NonLocalDepEntry Entry(Pred,
|
MemDepResult::getClobber(Pred->getTerminator())));
|
||||||
MemDepResult::getClobber(Pred->getTerminator()));
|
|
||||||
Result.push_back(Entry);
|
|
||||||
|
|
||||||
// Add it to the cache for this CacheKey so that subsequent queries get
|
|
||||||
// this result.
|
|
||||||
Cache = &NonLocalPointerDeps[CacheKey].second;
|
|
||||||
MemoryDependenceAnalysis::NonLocalDepInfo::iterator It =
|
|
||||||
std::upper_bound(Cache->begin(), Cache->end(), Entry);
|
|
||||||
Cache->insert(It, Entry);
|
|
||||||
Cache = 0;
|
|
||||||
|
|
||||||
// Add it to the reverse map next.
|
|
||||||
ReverseNonLocalPtrDeps[Pred->getTerminator()].insert(CacheKey);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user