diff options
| author | Devang Patel <dpatel@apple.com> | 2010-03-15 22:23:03 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2010-03-15 22:23:03 +0000 |
| commit | 45c1505bf60a17a02846a823fac6d8544a27501c (patch) | |
| tree | 57556e2a648ccb092eae251bbe0f085b52d241a5 /llvm/lib | |
| parent | fe8d866fc75f84119e5ff334c46e4e1262d4b617 (diff) | |
| download | bcm5719-llvm-45c1505bf60a17a02846a823fac6d8544a27501c.tar.gz bcm5719-llvm-45c1505bf60a17a02846a823fac6d8544a27501c.zip | |
Skip debug info intrinsics.
llvm-svn: 98584
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index 838a3e74875..de93e9f621f 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -43,6 +43,7 @@ #include "llvm/BasicBlock.h" #include "llvm/Constants.h" #include "llvm/Instructions.h" +#include "llvm/IntrinsicInst.h" #include "llvm/LLVMContext.h" #include "llvm/Type.h" #include "llvm/Analysis/Dominators.h" @@ -556,6 +557,9 @@ void IndVarSimplify::SinkUnusedInvariants(Loop *L) { // dominates the exit block. if (I->mayHaveSideEffects() || I->mayReadFromMemory()) continue; + // Skip debug info intrinsics. + if (isa<DbgInfoIntrinsic>(I)) + continue; // Don't sink static AllocaInsts out of the entry block, which would // turn them into dynamic allocas! if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) |

