Use the new TLI method to get this.

llvm-svn: 19582
This commit is contained in:
Chris Lattner 2005-01-16 01:11:19 +00:00
parent 1bc93bac69
commit d58384fca6
1 changed files with 1 additions and 3 deletions

View File

@ -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