Re: 回复:[PING] [PATCH RESEND] riscv: improve the cost model for loading a 64bit constant in rv32.

2022-11-28 Thread Palmer Dabbelt
On Mon, 28 Nov 2022 11:15:01 PST (-0800), gcc-patches@gcc.gnu.org wrote: > > > On 11/24/22 00:43, Sinan wrote: >>> The motivation of this patch is to correct the wrong estimation  >>>of  the number of instructions needed for loading a 64bit constant  in  rv32 in

Re: 回复:[PING] [PATCH RESEND] riscv: improve the cost model for loading a 64bit constant in rv32.

2022-11-28 Thread Jeff Law via Gcc-patches
On 11/24/22 00:43, Sinan wrote:  The motivation of this patch is to correct the wrong estimation of  the number of instructions needed for loading a 64bit constant in  rv32 in the current cost model(riscv_interger_cost). According to  the current implementation, if a constant requires more th