summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetLowering.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-31 01:50:09 +0000
committerChris Lattner <sabre@nondot.org>2006-03-31 01:50:09 +0000
commit051f7861b890240fd62b91f4f8a9a83774ed30d2 (patch)
tree4bb3ac2d3ae65e2c07ea39de83b4540ccd90acd2 /llvm/lib/Target/TargetLowering.cpp
parentbca5fbe9140ca6aea6084f20833a9b49b6f8a2d7 (diff)
downloadbcm5719-llvm-051f7861b890240fd62b91f4f8a9a83774ed30d2.tar.gz
bcm5719-llvm-051f7861b890240fd62b91f4f8a9a83774ed30d2.zip
Was returning the wrong type.
llvm-svn: 27277
Diffstat (limited to 'llvm/lib/Target/TargetLowering.cpp')
-rw-r--r--llvm/lib/Target/TargetLowering.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Target/TargetLowering.cpp b/llvm/lib/Target/TargetLowering.cpp
index 922245f5535..f1e36be494d 100644
--- a/llvm/lib/Target/TargetLowering.cpp
+++ b/llvm/lib/Target/TargetLowering.cpp
@@ -154,7 +154,6 @@ unsigned TargetLowering::getPackedTypeBreakdown(const PackedType *PTy,
// Figure out the right, legal destination reg to copy into.
unsigned NumElts = PTy->getNumElements();
MVT::ValueType EltTy = getValueType(PTy->getElementType());
- PTyElementVT = EltTy;
unsigned NumVectorRegs = 1;
@@ -166,10 +165,12 @@ unsigned TargetLowering::getPackedTypeBreakdown(const PackedType *PTy,
}
MVT::ValueType VT;
- if (NumElts == 1)
+ if (NumElts == 1) {
VT = EltTy;
- else
- VT = getVectorType(EltTy, NumElts);
+ } else {
+ VT = getVectorType(EltTy, NumElts);
+ }
+ PTyElementVT = VT;
MVT::ValueType DestVT = getTypeToTransformTo(VT);
PTyLegalElementVT = DestVT;
OpenPOWER on IntegriCloud