diff options
author | Lehua Ding <lehua.ding@rivai.ai> | 2023-09-15 11:45:55 +0800 |
---|---|---|
committer | Lehua Ding <lehua.ding@rivai.ai> | 2023-09-15 18:18:52 +0800 |
commit | e6413b5dc5b786391802368207ec86945eef2ae0 (patch) | |
tree | e14c04b3dbf6a178491186ce97cfabc06554e93b /gcc/ada | |
parent | 5daeda573cedc2910ecee7f1b3168210143dc026 (diff) | |
download | gcc-e6413b5dc5b786391802368207ec86945eef2ae0.zip gcc-e6413b5dc5b786391802368207ec86945eef2ae0.tar.gz gcc-e6413b5dc5b786391802368207ec86945eef2ae0.tar.bz2 |
RISC-V: Refactor expand_reduction and cleanup enum reduction_type
This patch refactors expand_reduction, remove the reduction_type argument
and add insn_flags argument to determine the passing of the operands.
ops has also been modified to restrict it to only two cases and to remove
operand that are not in use.
gcc/ChangeLog:
* config/riscv/autovec-opt.md: Adjust.
* config/riscv/autovec.md: Ditto.
* config/riscv/riscv-protos.h (enum class): Delete enum reduction_type.
(expand_reduction): Adjust expand_reduction prototype.
* config/riscv/riscv-v.cc (need_mask_operand_p): New helper function.
(expand_reduction): Refactor expand_reduction.
Diffstat (limited to 'gcc/ada')
0 files changed, 0 insertions, 0 deletions