diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-22 04:25:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-22 04:25:02 +0000 |
commit | 0ee443d169786017d151034b8bd34225bc144c98 (patch) | |
tree | 9cb060f0291918df427edb211dc081fc01f085f6 /lib/Transforms/Scalar/GVN.cpp | |
parent | 3ea3c2461932d96d3defa0a9aa93ffaf631bb19d (diff) | |
download | llvm-0ee443d169786017d151034b8bd34225bc144c98.tar.gz llvm-0ee443d169786017d151034b8bd34225bc144c98.tar.bz2 llvm-0ee443d169786017d151034b8bd34225bc144c98.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91885 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/GVN.cpp')
-rw-r--r-- | lib/Transforms/Scalar/GVN.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index ec4d7cb579..249194d036 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/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: " |