summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-01 00:50:53 +0000
committerDan Gohman <gohman@apple.com>2010-05-01 00:50:53 +0000
commit77ef6f6a17ff06baf701fc28aaa220a8bceb66fa (patch)
tree4223b9b482c604644104d4e188628f35202e0a21 /llvm
parent3dca8f3da327ba6b1bc35d2e764e4f0e264bacea (diff)
downloadbcm5719-llvm-77ef6f6a17ff06baf701fc28aaa220a8bceb66fa.tar.gz
bcm5719-llvm-77ef6f6a17ff06baf701fc28aaa220a8bceb66fa.zip
Re-enable kill flags from SelectionDAGISel, with a fix: don't
try to put a kill flag on a DBG_INFO instruction. llvm-svn: 102820
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp b/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
index 5f0c0e8d4fa..1d44ff66291 100644
--- a/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
@@ -296,7 +296,6 @@ InstrEmitter::AddRegisterOperand(MachineInstr *MI, SDValue Op,
}
}
-#if 0
// If this value has only one use, that use is a kill. This is a
// conservative approximation. Tied operands are never killed, so we need
// to check that. And that means we need to determine the index of the
@@ -306,10 +305,7 @@ InstrEmitter::AddRegisterOperand(MachineInstr *MI, SDValue Op,
MI->getOperand(Idx-1).isReg() && MI->getOperand(Idx-1).isImplicit())
--Idx;
bool isTied = MI->getDesc().getOperandConstraint(Idx, TOI::TIED_TO) != -1;
- bool isKill = Op.hasOneUse() && !isTied;
-#else
- bool isKill = false;
-#endif
+ bool isKill = Op.hasOneUse() && !isTied && !IsDebug;
MI->addOperand(MachineOperand::CreateReg(VReg, isOptDef,
false/*isImp*/, isKill,
OpenPOWER on IntegriCloud