diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-29 21:14:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-29 21:14:59 +0000 |
commit | 9b4ba06f907aac7ef1991e339ff4c262a301047f (patch) | |
tree | 50c38800640ff6ca967d11cf2074e71cc0e29ba9 | |
parent | 02507fdead4d86a04c1c914549b2d2ab295c47c7 (diff) | |
download | external_llvm-9b4ba06f907aac7ef1991e339ff4c262a301047f.zip external_llvm-9b4ba06f907aac7ef1991e339ff4c262a301047f.tar.gz external_llvm-9b4ba06f907aac7ef1991e339ff4c262a301047f.tar.bz2 |
revert this patch for now, it causes failures of:
LLVM::Transforms/GVN/2009-02-17-LoadPRECrash.ll
LLVM::Transforms/GVN/2009-06-17-InvalidPRE.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90096 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/MemoryDependenceAnalysis.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/Analysis/MemoryDependenceAnalysis.cpp b/lib/Analysis/MemoryDependenceAnalysis.cpp index 49dfeb5..b5069ec 100644 --- a/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -1156,18 +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; + Result.push_back(NonLocalDepEntry(Pred, + MemDepResult::getClobber(Pred->getTerminator()))); continue; } |