diff options
author | Lehua Ding <lehua.ding@rivai.ai> | 2023-08-25 15:50:15 +0800 |
---|---|---|
committer | Lehua Ding <lehua.ding@rivai.ai> | 2023-08-29 21:20:30 +0800 |
commit | b3176bdc86c04da6545a4bd8e2fb7f38d3f2db8d (patch) | |
tree | 915a2afe567f68b3163f497c63a22fe75371269b /contrib/unused_functions.py | |
parent | f2242694d4f868ec04c9766878762c5b466b0670 (diff) | |
download | gcc-b3176bdc86c04da6545a4bd8e2fb7f38d3f2db8d.zip gcc-b3176bdc86c04da6545a4bd8e2fb7f38d3f2db8d.tar.gz gcc-b3176bdc86c04da6545a4bd8e2fb7f38d3f2db8d.tar.bz2 |
RISC-V: Refactor and clean expand_cond_len_{unop,binop,ternop}
This patch refactors the codes of expand_cond_len_{unop,binop,ternop}.
Introduces a new unified function expand_cond_len_op to do the main thing.
The expand_cond_len_{unop,binop,ternop} functions only care about how
to pass the operands to the intrinsic patterns.
gcc/ChangeLog:
* config/riscv/autovec.md: Adjust
* config/riscv/riscv-protos.h (RVV_VUNDEF): Clean.
(get_vlmax_rtx): Exported.
* config/riscv/riscv-v.cc (emit_nonvlmax_fp_ternary_tu_insn): Deleted.
(emit_vlmax_masked_gather_mu_insn): Adjust.
(get_vlmax_rtx): New func.
(expand_load_store): Adjust.
(expand_cond_len_unop): Call expand_cond_len_op.
(expand_cond_len_op): New subroutine.
(expand_cond_len_binop): Call expand_cond_len_op.
(expand_cond_len_ternop): Call expand_cond_len_op.
(expand_lanes_load_store): Adjust.
Diffstat (limited to 'contrib/unused_functions.py')
0 files changed, 0 insertions, 0 deletions