diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-16 19:50:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-16 19:50:01 +0000 |
commit | 3a59358499f527ad9a8d1d4ed7d80b6bf0f1c12d (patch) | |
tree | db7b35b54cc720799410c3b106429f1f5ad7bc4f /lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | 804d995f997287572496af0800587a3d4046be60 (diff) |
set TransformToType correctly for vector types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26797 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/TargetLowering.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index d068fec40c..c4cb8c2dc9 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -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; |