Re: [SH][committed] PR 113533

2024-10-17 Thread Oleg Endo
On Mon, 2024-10-14 at 11:37 +0900, Oleg Endo wrote: > For memory loads/stores (that contain a MEM rtx) sh_rtx_costs would wrongly > report a cost lower than 1 insn which is not accurate as it makes > loads/stores appear cheaper than simple arithmetic insns. The cost of a > load/store insn is at le

[SH][committed] PR 113533

2024-10-13 Thread Oleg Endo
For memory loads/stores (that contain a MEM rtx) sh_rtx_costs would wrongly report a cost lower than 1 insn which is not accurate as it makes loads/stores appear cheaper than simple arithmetic insns. The cost of a load/store insn is at least 1 insn plus the cost of the address expression (some add