summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/GVN.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-22 04:25:02 +0000
committerChris Lattner <sabre@nondot.org>2009-12-22 04:25:02 +0000
commit9b7d99eb76f6e72b7f08e0a66c16f4f0a1b00e60 (patch)
tree0297452e18d61e038080a2202b2c9a32706a0659 /llvm/lib/Transforms/Scalar/GVN.cpp
parente2808379b8ac8735bca773a346f6552ce45d4ec4 (diff)
downloadbcm5719-llvm-9b7d99eb76f6e72b7f08e0a66c16f4f0a1b00e60.tar.gz
bcm5719-llvm-9b7d99eb76f6e72b7f08e0a66c16f4f0a1b00e60.zip
The phi translated pointer can be computed when returning a partially cached result
instead of stored. This reduces memdep memory usage, and also eliminates a bunch of weakvh's. This speeds up gvn on gcc.c-torture/20001226-1.c from 23.9s to 8.45s (2.8x) on a different machine than earlier. llvm-svn: 91885
Diffstat (limited to 'llvm/lib/Transforms/Scalar/GVN.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/GVN.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp
index ec4d7cb579f..249194d036c 100644
--- a/llvm/lib/Transforms/Scalar/GVN.cpp
+++ b/llvm/lib/Transforms/Scalar/GVN.cpp
@@ -1358,7 +1358,7 @@ static bool isLifetimeStart(Instruction *Inst) {
bool GVN::processNonLocalLoad(LoadInst *LI,
SmallVectorImpl<Instruction*> &toErase) {
// Find the non-local dependencies of the load.
- SmallVector<NonLocalDepEntry, 64> Deps;
+ SmallVector<NonLocalDepResult, 64> Deps;
MD->getNonLocalPointerDependency(LI->getOperand(0), true, LI->getParent(),
Deps);
//DEBUG(errs() << "INVESTIGATING NONLOCAL LOAD: "
OpenPOWER on IntegriCloud