mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-03 10:54:42 +00:00
Was returning the wrong type.
llvm-svn: 27277
This commit is contained in:
parent
a31d719e0a
commit
00921c047c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user