diff options
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 94aab32337..0b4ffa54f0 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -79,9 +79,7 @@ namespace llvm { 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 |