Re: [PATCH] Make the default rtx_costs of MULT/DIV variants consistent.

2022-05-30 Thread Jeff Law via Gcc-patches
On 5/30/2022 7:46 AM, Roger Sayle wrote: GCC's middle-end provides a default cost model for RTL expressions, for backends that don't specify their own instruction timings, that can be summarized as multiplications are COSTS_N_INSNS(4), divisions are COSTS_N_INSNS(7) and all other operations ar

[PATCH] Make the default rtx_costs of MULT/DIV variants consistent.

2022-05-30 Thread Roger Sayle
GCC's middle-end provides a default cost model for RTL expressions, for backends that don't specify their own instruction timings, that can be summarized as multiplications are COSTS_N_INSNS(4), divisions are COSTS_N_INSNS(7) and all other operations are COSTS_N_INSNS(1). This patch tweaks the abo