mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
set TransformToType correctly for vector types.
llvm-svn: 26797
This commit is contained in:
parent
c7aaa3cc89
commit
eac8e98036
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user