mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +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.
|
// Finally, if we found any FP code, emit the FP_REG_KILL instruction.
|
||||||
if (ContainsFPCode) {
|
if (ContainsFPCode) {
|
||||||
|
const TargetInstrDescriptor &II= TM.getInstrInfo()->get(X86::FP_REG_KILL);
|
||||||
|
MachineInstrBuilder MIB =
|
||||||
BuildMI(*BB, BB->getFirstTerminator(), X86::FP_REG_KILL, 0);
|
BuildMI(*BB, BB->getFirstTerminator(), X86::FP_REG_KILL, 0);
|
||||||
|
for (const unsigned *ImplicitDefs = II.ImplicitDefs;
|
||||||
|
*ImplicitDefs; ++ImplicitDefs)
|
||||||
|
MIB = MIB.addReg(*ImplicitDefs, true, true);
|
||||||
++NumFPKill;
|
++NumFPKill;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user