set TransformToType correctly for vector types.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26797 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-03-16 19:50:01 +00:00
parent 804d995f99
commit 3a59358499

View File

@ -125,6 +125,14 @@ void TargetLowering::computeRegisterProperties() {
SetValueTypeAction(MVT::Vector, Expand, *this, TransformToType,
ValueTypeActions);
// Loop over all of the legal vector value types, specifying an identity type
// transformation.
for (unsigned i = MVT::FIRST_VECTOR_VALUETYPE;
i != MVT::LAST_VECTOR_VALUETYPE; ++i) {
if (isTypeLegal((MVT::ValueType)i))
TransformToType[i] = (MVT::ValueType)i;
}
assert(isTypeLegal(MVT::f64) && "Target does not support FP?");
TransformToType[MVT::f64] = MVT::f64;
}