From d58384fca6e90595dbfff4062c1d61037bf44bf6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 16 Jan 2005 01:11:19 +0000 Subject: [PATCH] Use the new TLI method to get this. llvm-svn: 19582 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 94aab3233785..0b4ffa54f0a1 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/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