]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Reorder insn cost match order to match corresponding expander match order
authorPatrick O'Neill <patrick@rivosinc.com>
Tue, 20 Aug 2024 18:38:20 +0000 (11:38 -0700)
committerPatrick O'Neill <patrick@rivosinc.com>
Tue, 27 Aug 2024 17:01:13 +0000 (10:01 -0700)
commitac1f3a8901344759dc7c247d3749c74a0bb524b0
treeee0637bb9e3434dd54552e51b0fb4cf905512b6b
parentc89038c7ae8bba7160ae2963647ce90171b5dd2c
RISC-V: Reorder insn cost match order to match corresponding expander match order

The corresponding expander (riscv-v.cc:expand_const_vector) matches
const_vec_duplicate_p before const_vec_series_p. Reorder to match this
behavior when calculating costs.

gcc/ChangeLog:

* config/riscv/riscv.cc (riscv_const_insns): Relocate.

Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
gcc/config/riscv/riscv.cc