aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorLehua Ding <lehua.ding@rivai.ai>2023-09-15 11:45:55 +0800
committerLehua Ding <lehua.ding@rivai.ai>2023-09-15 18:18:52 +0800
commite6413b5dc5b786391802368207ec86945eef2ae0 (patch)
treee14c04b3dbf6a178491186ce97cfabc06554e93b /gcc/ada
parent5daeda573cedc2910ecee7f1b3168210143dc026 (diff)
downloadgcc-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