summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-16 01:11:19 +0000
committerChris Lattner <sabre@nondot.org>2005-01-16 01:11:19 +0000
commitd58384fca6e90595dbfff4062c1d61037bf44bf6 (patch)
treecc54f5fbce80e978460458889166ec46bd10e0c7 /llvm
parent1bc93bac69530524dd0831f7c777149fe1bace7d (diff)
downloadbcm5719-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.cpp4
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
OpenPOWER on IntegriCloud