mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
804d995f99
commit
3a59358499
@ -124,6 +124,14 @@ void TargetLowering::computeRegisterProperties() {
|
||||
// Set MVT::Vector to always be Expanded
|
||||
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