diff options
author | Robin Dapp <rdapp@ventanamicro.com> | 2024-02-26 13:09:15 +0100 |
---|---|---|
committer | Robin Dapp <rdapp@ventanamicro.com> | 2024-05-17 22:31:43 +0200 |
commit | e0b9c8ad7098fb08a25a61fe17d4274dd73e5145 (patch) | |
tree | b98f1a6072a7035a5d85ba3026a3e3b7f82a643c /libcpp | |
parent | 7ca35f2e430081d6ec91e910002f92d9713350fa (diff) | |
download | gcc-e0b9c8ad7098fb08a25a61fe17d4274dd73e5145.zip gcc-e0b9c8ad7098fb08a25a61fe17d4274dd73e5145.tar.gz gcc-e0b9c8ad7098fb08a25a61fe17d4274dd73e5145.tar.bz2 |
RISC-V: Add initial cost handling for segment loads/stores.
This patch makes segment loads and stores more expensive. It adds
segment_permute_2 as well as 3 to 8 cost fields to the common vector
costs and adds handling to adjust_stmt_cost.
gcc/ChangeLog:
* config/riscv/riscv-protos.h (struct common_vector_cost): Add
segment_permute cost.
* config/riscv/riscv-vector-costs.cc (costs::adjust_stmt_cost):
Handle segment loads/stores.
* config/riscv/riscv.cc: Initialize segment_permute_[2-8] to 1.
gcc/testsuite/ChangeLog:
* gcc.dg/vect/costmodel/riscv/rvv/pr113112-4.c: Adjust test.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions