mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Add all implicit defs to FP_REG_KILL mi.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31674 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5b3bbc7cd7
commit
490ce1ea6f
@ -525,7 +525,12 @@ void X86DAGToDAGISel::InstructionSelectBasicBlock(SelectionDAG &DAG) {
|
||||
|
||||
// Finally, if we found any FP code, emit the FP_REG_KILL instruction.
|
||||
if (ContainsFPCode) {
|
||||
BuildMI(*BB, BB->getFirstTerminator(), X86::FP_REG_KILL, 0);
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user