From 71cee76d26bdbb50d86a206717fe5b4265b396e7 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 30 Apr 2010 00:32:51 +0000 Subject: [PATCH] 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 --- lib/CodeGen/SelectionDAG/InstrEmitter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/CodeGen/SelectionDAG/InstrEmitter.cpp b/lib/CodeGen/SelectionDAG/InstrEmitter.cpp index e944dfd17d0..bf65cb56f16 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, -- 2.34.1