1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Fix a problem fully scalarizing values.

llvm-svn: 26811
This commit is contained in:
Chris Lattner 2006-03-16 23:05:19 +00:00
parent 33055a8aba
commit 7e80a5a16b

View File

@ -293,7 +293,10 @@ unsigned FunctionLoweringInfo::CreateRegForValue(const Value *V) {
NumElts >>= 1;
NumVectorRegs <<= 1;
}
VT = getVectorType(EltTy, NumElts);
if (NumElts == 1)
VT = EltTy;
else
VT = getVectorType(EltTy, NumElts);
}
// The common case is that we will only create one register for this