diff options
author | Dale Johannesen <dalej@apple.com> | 2009-03-13 19:23:20 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-03-13 19:23:20 +0000 |
commit | d1c135c6e69ae081ebffb5e73dc0aa10033094c0 (patch) | |
tree | b4204897c146d3624f0e08d33e28f43454fa6e68 /lib/Transforms/Scalar/InstructionCombining.cpp | |
parent | 17548b1eab9691c793820765566c7a134885d93d (diff) |
One more place where debug info affects codegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66930 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index b2a6864194..44d85e706c 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -11144,7 +11144,8 @@ static bool isSafeToLoadUnconditionally(Value *V, Instruction *ScanFrom) { // If we see a free or a call (which might do a free) the pointer could be // marked invalid. - if (isa<FreeInst>(BBI) || isa<CallInst>(BBI)) + if (isa<FreeInst>(BBI) || + (isa<CallInst>(BBI) && !isa<DbgInfoIntrinsic>(BBI))) return false; if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) { |