summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
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
commit3a401bcd04e3a04eea9e91649e1a820ff7cc60c1 (patch)
treeef5b285c6d92ff76c82c83fb73b1ac619e28ddf3 /lib/CodeGen/SelectionDAG/InstrEmitter.cpp
parente576f51e664821c69985d5db7e0fb109dd1cd137 (diff)
downloadllvm-3a401bcd04e3a04eea9e91649e1a820ff7cc60c1.tar.gz
llvm-3a401bcd04e3a04eea9e91649e1a820ff7cc60c1.tar.bz2
llvm-3a401bcd04e3a04eea9e91649e1a820ff7cc60c1.tar.xz
Re-enable kill flags from SelectionDAGISel, with a fix: don't
try to put a kill flag on a DBG_INFO instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102820 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/InstrEmitter.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/InstrEmitter.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/CodeGen/SelectionDAG/InstrEmitter.cpp b/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
index 5f0c0e8d4f..1d44ff6629 100644
--- a/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
+++ b/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,