]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Emit costs for bool and stepped const vectors
authorPatrick O'Neill <patrick@rivosinc.com>
Tue, 20 Aug 2024 18:51:50 +0000 (11:51 -0700)
committerPatrick O'Neill <patrick@rivosinc.com>
Tue, 27 Aug 2024 17:01:23 +0000 (10:01 -0700)
commit771256bcb9ddc478dd0a8ecf929dfda5334f0ff3
treec233cf07e17f934042a9c2bae515e4043e8a6bd3
parenta3dc5d2100a3d17a2d67805de6d0373847bca780
RISC-V: Emit costs for bool and stepped const vectors

These cases are handled in the expander
(riscv-v.cc:expand_const_vector). We need the vector builder to detect
these cases so extract that out into a new riscv-v.h header file.

gcc/ChangeLog:

* config/riscv/riscv-v.cc (class rvv_builder): Move to riscv-v.h.
* config/riscv/riscv.cc (riscv_const_insns): Emit placeholder costs for
bool/stepped const vectors.
* config/riscv/riscv-v.h: New file.

Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
gcc/config/riscv/riscv-v.cc
gcc/config/riscv/riscv-v.h [new file with mode: 0644]
gcc/config/riscv/riscv.cc