summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetLowering.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-16 19:50:01 +0000
committerChris Lattner <sabre@nondot.org>2006-03-16 19:50:01 +0000
commitad74844bfa55d9fccb1d64062e2cbcf39ac92668 (patch)
tree549880ed6dad037931a945beb2614c20256d468d /llvm/lib/Target/TargetLowering.cpp
parent216e07043bc8d025100b500d1d7d60ef87593b56 (diff)
downloadbcm5719-llvm-ad74844bfa55d9fccb1d64062e2cbcf39ac92668.tar.gz
bcm5719-llvm-ad74844bfa55d9fccb1d64062e2cbcf39ac92668.zip
set TransformToType correctly for vector types.
llvm-svn: 26797
Diffstat (limited to 'llvm/lib/Target/TargetLowering.cpp')
-rw-r--r--llvm/lib/Target/TargetLowering.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetLowering.cpp b/llvm/lib/Target/TargetLowering.cpp
index d068fec40c9..c4cb8c2dc99 100644
--- a/llvm/lib/Target/TargetLowering.cpp
+++ b/llvm/lib/Target/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;
OpenPOWER on IntegriCloud