aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-30 00:32:51 +0000
committerDan Gohman <gohman@apple.com>2010-04-30 00:32:51 +0000
commit9dcf5529eb20919cd6179f227dcc7a3ef77f75df (patch)
treeeb219665e418efcd209d3be1d5242790ce0c23e6 /lib/CodeGen/SelectionDAG
parent433cc97de88dbe776a740e9e2631e1b262e8cbd4 (diff)
downloadexternal_llvm-9dcf5529eb20919cd6179f227dcc7a3ef77f75df.zip
external_llvm-9dcf5529eb20919cd6179f227dcc7a3ef77f75df.tar.gz
external_llvm-9dcf5529eb20919cd6179f227dcc7a3ef77f75df.tar.bz2
Temporarily disable SelectionDAG kill flags, which are causing trouble.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102680 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r--lib/CodeGen/SelectionDAG/InstrEmitter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/InstrEmitter.cpp b/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
index e944dfd..bf65cb5 100644
--- a/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
+++ b/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
@@ -296,6 +296,7 @@ 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,6 +307,9 @@ InstrEmitter::AddRegisterOperand(MachineInstr *MI, SDValue Op,
--Idx;
bool isTied = MI->getDesc().getOperandConstraint(Idx, TOI::TIED_TO) != -1;
bool isKill = Op.hasOneUse() && !isTied;
+#else
+ bool isKill = false;
+#endif
MI->addOperand(MachineOperand::CreateReg(VReg, isOptDef,
false/*isImp*/, isKill,