diff options
author | Chris Lattner <sabre@nondot.org> | 2010-09-06 01:26:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-09-06 01:26:29 +0000 |
commit | e34c835bdef14f08b512ec5669f47b921ddd309f (patch) | |
tree | 000ecaa54f2fa8646bb2730e4637d69f11c9913e /llvm/lib | |
parent | b01c24a94595f8854a12c9982a2b589106e7251e (diff) | |
download | bcm5719-llvm-e34c835bdef14f08b512ec5669f47b921ddd309f.tar.gz bcm5719-llvm-e34c835bdef14f08b512ec5669f47b921ddd309f.zip |
speed up -gvn 3.4% on the testcase in PR7023
llvm-svn: 113135
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Analysis/MemoryDependenceAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp index d18d5ce0ea4..e0e0cffb75b 100644 --- a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -176,7 +176,7 @@ getPointerDependencyFrom(Value *MemPtr, uint64_t MemSize, bool isLoad, if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(Inst)) { // Debug intrinsics don't cause dependences. - if (isa<DbgInfoIntrinsic>(Inst)) continue; + if (isa<DbgInfoIntrinsic>(II)) continue; // If we pass an invariant-end marker, then we've just entered an // invariant region and can start ignoring dependencies. |