commit | d1c135c6e69ae081ebffb5e73dc0aa10033094c0 | [log] [tgz] |
---|---|---|
author | Dale Johannesen <dalej@apple.com> | Fri Mar 13 19:23:20 2009 +0000 |
committer | Dale Johannesen <dalej@apple.com> | Fri Mar 13 19:23:20 2009 +0000 |
tree | b4204897c146d3624f0e08d33e28f43454fa6e68 | |
parent | 17548b1eab9691c793820765566c7a134885d93d [diff] [blame] |
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
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index b2a6864..44d85e7 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -11144,7 +11144,8 @@ // 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)) {