Re: [PATCH 1/2] RISC-V: Fix the outer_code when calculating the cost of SET expression.

2024-09-18 Thread Jeff Law
On 9/16/24 2:10 AM, Xianmiao Qu wrote: I think it is a typo. When calculating the 'SET_SRC (x)' cost, outer_code should be set to SET. gcc/ * config/riscv/riscv.cc (riscv_rtx_costs): Fix the outer_code when calculating the cost of SET expression. Agreed and pushed. Thanks fo

[PATCH 1/2] RISC-V: Fix the outer_code when calculating the cost of SET expression.

2024-09-16 Thread Xianmiao Qu
I think it is a typo. When calculating the 'SET_SRC (x)' cost, outer_code should be set to SET. gcc/ * config/riscv/riscv.cc (riscv_rtx_costs): Fix the outer_code when calculating the cost of SET expression. --- gcc/config/riscv/riscv.cc | 2 +- 1 file changed, 1 insertion(+), 1 d