[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelPattern.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jan 18 12:06:08 PST 2005
Changes in directory llvm/lib/Target/X86:
X86ISelPattern.cpp updated: 1.75 -> 1.76
---
Log message:
Code to handle FP_EXTEND is dead now. X86 doesn't support any data types to
FP_EXTEND from!
---
Diffs of the changes: (+1 -4)
Index: llvm/lib/Target/X86/X86ISelPattern.cpp
diff -u llvm/lib/Target/X86/X86ISelPattern.cpp:1.75 llvm/lib/Target/X86/X86ISelPattern.cpp:1.76
--- llvm/lib/Target/X86/X86ISelPattern.cpp:1.75 Tue Jan 18 13:50:08 2005
+++ llvm/lib/Target/X86/X86ISelPattern.cpp Tue Jan 18 14:05:56 2005
@@ -1224,10 +1224,6 @@
BuildMI(BB, X86::MOV32ri, 1, Result).addExternalSymbol(Sym);
return Result;
}
- case ISD::FP_EXTEND:
- Tmp1 = SelectExpr(N.getOperand(0));
- BuildMI(BB, X86::FpMOV, 1, Result).addReg(Tmp1);
- return Result;
case ISD::ZERO_EXTEND: {
int DestIs16 = N.getValueType() == MVT::i16;
int SrcIs16 = N.getOperand(0).getValueType() == MVT::i16;
@@ -1287,6 +1283,7 @@
}
case ISD::TRUNCATE:
// Fold TRUNCATE (LOAD P) into a smaller load from P.
+ // FIXME: This should be performed by the DAGCombiner.
if (isFoldableLoad(N.getOperand(0), SDOperand())) {
switch (N.getValueType()) {
default: assert(0 && "Unknown truncate!");
More information about the llvm-commits
mailing list