mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Was returning the wrong type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27277 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
36f4b0da9d
commit
a6c9de4293
@ -154,7 +154,6 @@ unsigned TargetLowering::getPackedTypeBreakdown(const PackedType *PTy,
|
|||||||
// Figure out the right, legal destination reg to copy into.
|
// Figure out the right, legal destination reg to copy into.
|
||||||
unsigned NumElts = PTy->getNumElements();
|
unsigned NumElts = PTy->getNumElements();
|
||||||
MVT::ValueType EltTy = getValueType(PTy->getElementType());
|
MVT::ValueType EltTy = getValueType(PTy->getElementType());
|
||||||
PTyElementVT = EltTy;
|
|
||||||
|
|
||||||
unsigned NumVectorRegs = 1;
|
unsigned NumVectorRegs = 1;
|
||||||
|
|
||||||
@ -166,10 +165,12 @@ unsigned TargetLowering::getPackedTypeBreakdown(const PackedType *PTy,
|
|||||||
}
|
}
|
||||||
|
|
||||||
MVT::ValueType VT;
|
MVT::ValueType VT;
|
||||||
if (NumElts == 1)
|
if (NumElts == 1) {
|
||||||
VT = EltTy;
|
VT = EltTy;
|
||||||
else
|
} else {
|
||||||
VT = getVectorType(EltTy, NumElts);
|
VT = getVectorType(EltTy, NumElts);
|
||||||
|
}
|
||||||
|
PTyElementVT = VT;
|
||||||
|
|
||||||
MVT::ValueType DestVT = getTypeToTransformTo(VT);
|
MVT::ValueType DestVT = getTypeToTransformTo(VT);
|
||||||
PTyLegalElementVT = DestVT;
|
PTyLegalElementVT = DestVT;
|
||||||
|
Loading…
Reference in New Issue
Block a user