[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelPattern.cpp

Nate Begeman natebegeman at mac.com
Sat Oct 15 15:08:14 PDT 2005



Changes in directory llvm/lib/Target/X86:

X86ISelPattern.cpp updated: 1.182 -> 1.183
---
Log message:

Remove some dead code now that the dag combiner exists.


---
Diffs of the changes:  (+0 -15)

 X86ISelPattern.cpp |   15 ---------------
 1 files changed, 15 deletions(-)


Index: llvm/lib/Target/X86/X86ISelPattern.cpp
diff -u llvm/lib/Target/X86/X86ISelPattern.cpp:1.182 llvm/lib/Target/X86/X86ISelPattern.cpp:1.183
--- llvm/lib/Target/X86/X86ISelPattern.cpp:1.182	Fri Oct 14 17:06:00 2005
+++ llvm/lib/Target/X86/X86ISelPattern.cpp	Sat Oct 15 17:08:02 2005
@@ -2428,21 +2428,6 @@
     return Result;
   }
   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!");
-      case MVT::i1:
-      case MVT::i8:  Opc = X86::MOV8rm;  break;
-      case MVT::i16: Opc = X86::MOV16rm; break;
-      }
-      X86AddressMode AM;
-      EmitFoldedLoad(N.getOperand(0), AM);
-      addFullAddress(BuildMI(BB, Opc, 4, Result), AM);
-      return Result;
-    }
-
     // Handle cast of LARGER int to SMALLER int using a move to EAX followed by
     // a move out of AX or AL.
     switch (N.getOperand(0).getValueType()) {






More information about the llvm-commits mailing list