diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-16 01:11:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-16 01:11:19 +0000 |
commit | 98e5c0e5e4c5be1b531d287d0a1373a62fe562e2 (patch) | |
tree | 669cf39a65200fe9ed43060e85a850009243d762 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | bb97d81cc873e2c0914f2ece43832723cc936d24 (diff) |
Use the new TLI method to get this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-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 |