Add all implicit defs to FP_REG_KILL mi.

llvm-svn: 31674
This commit is contained in:
Evan Cheng 2006-11-11 07:19:36 +00:00
parent c5102bfc7c
commit a36cdcfaf8
1 changed files with 6 additions and 1 deletions

View File

@ -525,7 +525,12 @@ void X86DAGToDAGISel::InstructionSelectBasicBlock(SelectionDAG &DAG) {
// Finally, if we found any FP code, emit the FP_REG_KILL instruction.
if (ContainsFPCode) {
const TargetInstrDescriptor &II= TM.getInstrInfo()->get(X86::FP_REG_KILL);
MachineInstrBuilder MIB =
BuildMI(*BB, BB->getFirstTerminator(), X86::FP_REG_KILL, 0);
for (const unsigned *ImplicitDefs = II.ImplicitDefs;
*ImplicitDefs; ++ImplicitDefs)
MIB = MIB.addReg(*ImplicitDefs, true, true);
++NumFPKill;
}
}