[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
Evan Cheng
evan.cheng at apple.com
Fri Nov 10 23:19:50 PST 2006
Changes in directory llvm/lib/Target/X86:
X86ISelDAGToDAG.cpp updated: 1.124 -> 1.125
---
Log message:
Add all implicit defs to FP_REG_KILL mi.
---
Diffs of the changes: (+6 -1)
X86ISelDAGToDAG.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
diff -u llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.124 llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.125
--- llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.124 Fri Nov 10 15:23:04 2006
+++ llvm/lib/Target/X86/X86ISelDAGToDAG.cpp Sat Nov 11 01:19:36 2006
@@ -525,7 +525,12 @@
// 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;
}
}
More information about the llvm-commits
mailing list