Fix a problem fully scalarizing values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26811 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-03-16 23:05:19 +00:00
parent 2771d21c50
commit 6cb7004c34

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