mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
Support returning non-power-of-2 vectors to unblock some work
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44371 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -364,6 +364,13 @@ unsigned TargetLowering::getVectorTypeBreakdown(MVT::ValueType VT,
|
||||
|
||||
unsigned NumVectorRegs = 1;
|
||||
|
||||
// FIXME: We don't support non-power-of-2-sized vectors for now. Ideally we
|
||||
// could break down into LHS/RHS like LegalizeDAG does.
|
||||
if (!isPowerOf2_32(NumElts)) {
|
||||
NumVectorRegs = NumElts;
|
||||
NumElts = 1;
|
||||
}
|
||||
|
||||
// Divide the input until we get to a supported size. This will always
|
||||
// end with a scalar if the target doesn't support vectors.
|
||||
while (NumElts > 1 &&
|
||||
|
Reference in New Issue
Block a user