mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 17:32: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…
x
Reference in New Issue
Block a user