mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Fix weirdness handling single element vectors.
llvm-svn: 35941
This commit is contained in:
parent
2b6b79b896
commit
2f221a83ec
@ -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