summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-03-13 19:23:20 +0000
committerDale Johannesen <dalej@apple.com>2009-03-13 19:23:20 +0000
commitc65830519e9a2f6ade60e08306db59d6ee5c05bd (patch)
tree791c3f254ff35ace3071fc4976c5a0d4a41b9560 /llvm/lib
parenta01646efda0d1908170ce2f7b68e900562600b38 (diff)
downloadbcm5719-llvm-c65830519e9a2f6ade60e08306db59d6ee5c05bd.tar.gz
bcm5719-llvm-c65830519e9a2f6ade60e08306db59d6ee5c05bd.zip
One more place where debug info affects codegen.
llvm-svn: 66930
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index b2a68641940..44d85e706c6 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/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)) {
OpenPOWER on IntegriCloud