mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-22 10:36:10 +00:00
Fix weirdness handling single element vectors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35941 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6c284d716e
commit
c2941779c3
@ -303,12 +303,9 @@ unsigned TargetLowering::getVectorTypeBreakdown(const VectorType *PTy,
|
||||
NumVectorRegs <<= 1;
|
||||
}
|
||||
|
||||
MVT::ValueType VT;
|
||||
if (NumElts == 1) {
|
||||
MVT::ValueType VT = getVectorType(EltTy, NumElts);
|
||||
if (!isTypeLegal(VT))
|
||||
VT = EltTy;
|
||||
} else {
|
||||
VT = getVectorType(EltTy, NumElts);
|
||||
}
|
||||
PTyElementVT = VT;
|
||||
|
||||
MVT::ValueType DestVT = getTypeToTransformTo(VT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user