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:
parent
33055a8aba
commit
7e80a5a16b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user