[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp X86InstrInfo.td
Chris Lattner
lattner at cs.uiuc.edu
Sat Jan 28 22:44:34 PST 2006
Changes in directory llvm/lib/Target/X86:
X86ISelLowering.cpp updated: 1.63 -> 1.64
X86InstrInfo.td updated: 1.221 -> 1.222
---
Log message:
The FP stack doesn't support UNDEF, ask the legalizer to legalize it
instead of lying and saying we have it.
---
Diffs of the changes: (+3 -5)
X86ISelLowering.cpp | 4 +++-
X86InstrInfo.td | 4 ----
2 files changed, 3 insertions(+), 5 deletions(-)
Index: llvm/lib/Target/X86/X86ISelLowering.cpp
diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.63 llvm/lib/Target/X86/X86ISelLowering.cpp:1.64
--- llvm/lib/Target/X86/X86ISelLowering.cpp:1.63 Sun Jan 29 00:26:08 2006
+++ llvm/lib/Target/X86/X86ISelLowering.cpp Sun Jan 29 00:44:22 2006
@@ -221,7 +221,9 @@
} else {
// Set up the FP register classes.
addRegisterClass(MVT::f64, X86::RFPRegisterClass);
-
+
+ setOperationAction(ISD::UNDEF, MVT::f64, Expand);
+
if (!X86PatIsel) {
setOperationAction(ISD::SINT_TO_FP, MVT::i16, Custom);
setOperationAction(ISD::SINT_TO_FP, MVT::i32, Custom);
Index: llvm/lib/Target/X86/X86InstrInfo.td
diff -u llvm/lib/Target/X86/X86InstrInfo.td:1.221 llvm/lib/Target/X86/X86InstrInfo.td:1.222
--- llvm/lib/Target/X86/X86InstrInfo.td:1.221 Fri Jan 27 16:53:29 2006
+++ llvm/lib/Target/X86/X86InstrInfo.td Sun Jan 29 00:44:22 2006
@@ -3022,10 +3022,6 @@
def : Pat<(f64 fp64immneg0), (FpCHS (FpLD0))>, Requires<[FPStack]>;
def : Pat<(f64 fp64immneg1), (FpCHS (FpLD1))>, Requires<[FPStack]>;
-// RFP undef
-def : Pat<(f64 (undef)), (FpLD0)>, Requires<[FPStack]>;
-
-
//===----------------------------------------------------------------------===//
// Some peepholes
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list