diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-11-30 07:05:51 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-11-30 07:05:51 +0000 |
commit | 2d32947099a6e659dcf0ec13ee0a169f9e329576 (patch) | |
tree | 35829f447029a1ba0ac550d43354690066b910b8 | |
parent | 8a29dd4c7f2af9b14280e0cd0bce45eba032862a (diff) | |
download | bcm5719-llvm-2d32947099a6e659dcf0ec13ee0a169f9e329576.tar.gz bcm5719-llvm-2d32947099a6e659dcf0ec13ee0a169f9e329576.zip |
Revert r90107, fixing test/Transforms/GVN/2009-11-29-ReverseMap.ll and the
llvm-gcc build.
llvm-svn: 90113
-rw-r--r-- | llvm/lib/Analysis/MemoryDependenceAnalysis.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp index 21baf427ea4..b5069ecbc92 100644 --- a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -1156,21 +1156,8 @@ getNonLocalPointerDepFromBB(Value *Pointer, uint64_t PointeeSize, // that predecessor. We can still do PRE of the load, which would insert // a computation of the pointer in this predecessor. if (PredPtr == 0) { - // Add the entry to the Result list. - NonLocalDepEntry Entry(Pred, - 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); + Result.push_back(NonLocalDepEntry(Pred, + MemDepResult::getClobber(Pred->getTerminator()))); continue; } |