HomePhabricator

[RISCV] Add support for fixed vector reductions.

Authored by craig.topper on Mar 9 2021, 9:33 AM.

Description

[RISCV] Add support for fixed vector reductions.

I've included tests that require type legalization to split the
vector. The i64 version of these scalarizes on RV32 due to type
legalization visiting the result before the vector type. So we
have to abort our custom expansion to avoid creating target
specific nodes with an illegal type. Then type legalization ends
up scalarizing. We might be able to fix this by doing custom
splitting for large vectors in our handler to get down to a legal
type.

Reviewed By: frasercrmck

Differential Revision: https://reviews.llvm.org/D98102

Details

Committed
craig.topperMar 9 2021, 9:39 AM
Reviewer
frasercrmck
Differential Revision
D98102: [RISCV] Add support for fixed vector reductions.
Parents
rG736afe465f42: Revert "[build][modules] Fix ObjCARCUtil.h modularization"
Branches
Unknown
Tags
Unknown