mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 23:48:49 +00:00
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:
parent
2771d21c50
commit
6cb7004c34
@ -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