diff options
| author | Devang Patel <dpatel@apple.com> | 2009-03-06 02:59:27 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2009-03-06 02:59:27 +0000 |
| commit | e8c6d3102d585a621204570c160ebe00c584b82f (patch) | |
| tree | abb35c50582707918d6df5e84a47423195ef274c /llvm/lib/Transforms | |
| parent | 846bf9a797b5caeb8a0f6cd43454a2ced437d03a (diff) | |
| download | bcm5719-llvm-e8c6d3102d585a621204570c160ebe00c584b82f.tar.gz bcm5719-llvm-e8c6d3102d585a621204570c160ebe00c584b82f.zip | |
Skip DbgInfoIntrinsic.
llvm-svn: 66244
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/GVN.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp index 727d26555df..6593b9c6223 100644 --- a/llvm/lib/Transforms/Scalar/GVN.cpp +++ b/llvm/lib/Transforms/Scalar/GVN.cpp @@ -21,7 +21,7 @@ #include "llvm/Constants.h" #include "llvm/DerivedTypes.h" #include "llvm/Function.h" -#include "llvm/Instructions.h" +#include "llvm/IntrinsicInst.h" #include "llvm/Value.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DepthFirstIterator.h" @@ -1470,7 +1470,7 @@ bool GVN::performPRE(Function& F) { if (isa<AllocationInst>(CurInst) || isa<TerminatorInst>(CurInst) || isa<PHINode>(CurInst) || CurInst->mayReadFromMemory() || - CurInst->mayWriteToMemory()) + CurInst->mayWriteToMemory() || isa<DbgInfoIntrinsic>(CurInst)) continue; uint32_t valno = VN.lookup(CurInst); |

