aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.h
diff options
context:
space:
mode:
authorRobin Dapp <rdapp@ventanamicro.com>2024-12-13 11:23:03 +0100
committerRobin Dapp <rdapp@ventanamicro.com>2024-12-16 15:25:27 +0100
commitce199a952bfef3e27354a4586a17bc55274c1d3c (patch)
treef53d1450495c916e0e2679be63e6da6d4bfc8aac /gcc/tree-inline.h
parentf1309dbc7c281dc9fd70db8ec6e8cb804b2089fc (diff)
downloadgcc-ce199a952bfef3e27354a4586a17bc55274c1d3c.zip
gcc-ce199a952bfef3e27354a4586a17bc55274c1d3c.tar.gz
gcc-ce199a952bfef3e27354a4586a17bc55274c1d3c.tar.bz2
RISC-V: Increase cost for vec_construct [PR118019].
For a generic vec_construct from scalar elements we need to load each scalar element and move it over to a vector register. Right now we only use a cost of 1 per element. This patch uses register-move cost as well as scalar_to_vec and multiplies it with the number of elements in the vector instead. PR target/118019 gcc/ChangeLog: * config/riscv/riscv.cc (riscv_builtin_vectorization_cost): Increase vec_construct cost. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/pr118019.c: New test.
Diffstat (limited to 'gcc/tree-inline.h')
0 files changed, 0 insertions, 0 deletions