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 | d58384fca6e90595dbfff4062c1d61037bf44bf6 (patch) | |
tree | cc54f5fbce80e978460458889166ec46bd10e0c7 /llvm | |
parent | 1bc93bac69530524dd0831f7c777149fe1bace7d (diff) | |
download | bcm5719-llvm-d58384fca6e90595dbfff4062c1d61037bf44bf6.tar.gz bcm5719-llvm-d58384fca6e90595dbfff4062c1d61037bf44bf6.zip |
Use the new TLI method to get this.
llvm-svn: 19582
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 94aab323378..0b4ffa54f0a 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 |