summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-29 21:14:59 +0000
committerChris Lattner <sabre@nondot.org>2009-11-29 21:14:59 +0000
commit0311ade94c28b938e781aedd7ea19b7c95ff81c9 (patch)
tree176b3c414955c3a45ccf36277dc9c30f6b7ab1ce /llvm
parent1dd0164bbe4578dc0f876280eac91d8d9e6d6966 (diff)
downloadbcm5719-llvm-0311ade94c28b938e781aedd7ea19b7c95ff81c9.tar.gz
bcm5719-llvm-0311ade94c28b938e781aedd7ea19b7c95ff81c9.zip
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 llvm-svn: 90096
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Analysis/MemoryDependenceAnalysis.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp
index 49dfeb5d3ff..b5069ecbc92 100644
--- a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud