[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelPattern.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jan 18 11:50:21 PST 2005
Changes in directory llvm/lib/Target/X86:
X86ISelPattern.cpp updated: 1.74 -> 1.75
---
Log message:
Remove more dead code.
---
Diffs of the changes: (+0 -17)
Index: llvm/lib/Target/X86/X86ISelPattern.cpp
diff -u llvm/lib/Target/X86/X86ISelPattern.cpp:1.74 llvm/lib/Target/X86/X86ISelPattern.cpp:1.75
--- llvm/lib/Target/X86/X86ISelPattern.cpp:1.74 Tue Jan 18 13:46:54 2005
+++ llvm/lib/Target/X86/X86ISelPattern.cpp Tue Jan 18 13:50:08 2005
@@ -1320,23 +1320,6 @@
BuildMI(BB, Opc, 1, Result).addReg(Tmp2);
return Result;
- case ISD::FP_ROUND:
- // Truncate from double to float by storing to memory as float,
- // then reading it back into a register.
-
- // Create as stack slot to use.
- // FIXME: This should automatically be made by the Legalizer!
- Tmp1 = TLI.getTargetData().getFloatAlignment();
- Tmp2 = BB->getParent()->getFrameInfo()->CreateStackObject(4, Tmp1);
-
- // Codegen the input.
- Tmp1 = SelectExpr(N.getOperand(0));
-
- // Emit the store, then the reload.
- addFrameReference(BuildMI(BB, X86::FST32m, 5), Tmp2).addReg(Tmp1);
- addFrameReference(BuildMI(BB, X86::FLD32m, 5, Result), Tmp2);
- return Result;
-
case ISD::SINT_TO_FP:
case ISD::UINT_TO_FP: {
// FIXME: Most of this grunt work should be done by legalize!
More information about the llvm-commits
mailing list