summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-02-11 18:22:31 +0000
committerDale Johannesen <dalej@apple.com>2010-02-11 18:22:31 +0000
commit12565de705d75d0dbacb6813f956de417610fd8d (patch)
tree4a57284fdd651133fe78bddcfaa1fe131d505504 /llvm
parent48ea217fbf9db1163054a66a3d336fee9375da60 (diff)
downloadbcm5719-llvm-12565de705d75d0dbacb6813f956de417610fd8d.tar.gz
bcm5719-llvm-12565de705d75d0dbacb6813f956de417610fd8d.zip
Don't allow DBG_VALUE to affect codegen.
llvm-svn: 95889
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/TwoAddressInstructionPass.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
index 31552f89780..6f4ca82525b 100644
--- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -213,6 +213,9 @@ bool TwoAddressInstructionPass::Sink3AddrInstruction(MachineBasicBlock *MBB,
unsigned NumVisited = 0;
for (MachineBasicBlock::iterator I = llvm::next(OldPos); I != KillPos; ++I) {
MachineInstr *OtherMI = I;
+ // DBG_VALUE cannot be counted against the limit.
+ if (OtherMI->isDebugValue())
+ continue;
if (NumVisited > 30) // FIXME: Arbitrary limit to reduce compile time cost.
return false;
++NumVisited;
OpenPOWER on IntegriCloud