diff options
author | Devang Patel <dpatel@apple.com> | 2010-02-11 00:20:49 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-02-11 00:20:49 +0000 |
commit | be905e26f66e1b34fa4b2f5744b948007fd4ed0a (patch) | |
tree | 1fbb8fb77cbd6c947b1ff4776e0768ee61b656f5 /lib/Transforms | |
parent | 1c5bcac7d55efa4df0b6d67bb9cf4fa362244812 (diff) | |
download | external_llvm-be905e26f66e1b34fa4b2f5744b948007fd4ed0a.zip external_llvm-be905e26f66e1b34fa4b2f5744b948007fd4ed0a.tar.gz external_llvm-be905e26f66e1b34fa4b2f5744b948007fd4ed0a.tar.bz2 |
Ignore dbg info intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95828 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/GVN.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index 80e0027..3ce7482 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -1891,6 +1891,10 @@ Value *GVN::lookupNumber(BasicBlock *BB, uint32_t num) { /// by inserting it into the appropriate sets bool GVN::processInstruction(Instruction *I, SmallVectorImpl<Instruction*> &toErase) { + // Ignore dbg info intrinsics. + if (isa<DbgInfoIntrinsic>(I)) + return false; + if (LoadInst *LI = dyn_cast<LoadInst>(I)) { bool Changed = processLoad(LI, toErase); |