aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>2023-10-27 06:28:56 +0800
committerPan Li <pan2.li@intel.com>2023-10-27 07:03:32 +0800
commit446efa52a8cadb56d1d994da5c4de394efaff462 (patch)
treed2ea14ec07de2d6b0e2cb60ab0a081ac1d5f6e1e /gcc/c
parente37bc2cf00671e3bc4d82f2627330c0f885a6f29 (diff)
downloadgcc-446efa52a8cadb56d1d994da5c4de394efaff462.zip
gcc-446efa52a8cadb56d1d994da5c4de394efaff462.tar.gz
gcc-446efa52a8cadb56d1d994da5c4de394efaff462.tar.bz2
RISC-V: Move lmul calculation into macro
Notice we calculate LMUL according to --param=riscv-autovec-lmul in multiple places: int lmul = riscv_autovec_lmul == RVV_DYNAMIC ? RVV_M8 : riscv_autovec_lmul; Create a new macro for it for easier matain. gcc/ChangeLog: * config/riscv/riscv-opts.h (TARGET_MAX_LMUL): New macro. * config/riscv/riscv-v.cc (preferred_simd_mode): Adapt macro. (autovectorize_vector_modes): Ditto. (can_find_related_mode_p): Ditto.
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions