aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-data-ref.h
diff options
context:
space:
mode:
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>2023-10-16 16:25:04 +0800
committerLehua Ding <lehua.ding@rivai.ai>2023-10-16 17:18:37 +0800
commita5fe9f063de64aa2755c9ae9e90ed1ff64ee0f47 (patch)
tree8c2ad8c0fb59488af34a3ca836696c13037bce41 /gcc/tree-data-ref.h
parentb7a28c0904fa67f98d7ca7e9d828fc5fc58c7078 (diff)
downloadgcc-a5fe9f063de64aa2755c9ae9e90ed1ff64ee0f47.zip
gcc-a5fe9f063de64aa2755c9ae9e90ed1ff64ee0f47.tar.gz
gcc-a5fe9f063de64aa2755c9ae9e90ed1ff64ee0f47.tar.bz2
RISC-V: Use VLS modes if the NITERS is known and smaller than VLS mode elements.
void foo8 (int64_t *restrict a) { for (int i = 0; i < 16; ++i) a[i] = a[i]-16; } We use VLS modes instead of VLA modes even it is specified by dynamic LMUL. gcc/ChangeLog: * config/riscv/riscv-vector-costs.cc (costs::preferred_new_lmul_p): Use VLS modes. gcc/testsuite/ChangeLog: * gcc.dg/vect/costmodel/riscv/rvv/no-dynamic-lmul-1.c: New test.
Diffstat (limited to 'gcc/tree-data-ref.h')
0 files changed, 0 insertions, 0 deletions