1
0
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:
Chris Lattner 2007-04-12 04:44:28 +00:00
parent 2b6b79b896
commit 2f221a83ec

View File

@ -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);