[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Jan 15 17:11:32 PST 2005



Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAGISel.cpp updated: 1.18 -> 1.19
---
Log message:

Use the new TLI method to get this.


---
Diffs of the changes:  (+1 -3)

Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.18 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.19
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.18	Sat Jan 15 18:37:38 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp	Sat Jan 15 19:11:19 2005
@@ -79,9 +79,7 @@
       unsigned NV = TLI.getNumElements(VT);
       if (NV == 1) {
         // If we are promoting this value, pick the next largest supported type.
-        while (!TLI.hasNativeSupportFor(VT))
-          VT = (MVT::ValueType)(VT+1);
-        return MakeReg(VT);
+        return MakeReg(TLI.getTypeToTransformTo(VT));
       }
     
       // If this value is represented with multiple target registers, make sure






More information about the llvm-commits mailing list