Re: Make ix86 cost of VEC_SELECT equivalent to SUBREG same as of SUBREG

2025-05-02 Thread Jan Hubicka
> target_insn_cost is used to prevent rpad optimization to be restored by > late_combine1, looks like it's not sufficient for size_cost. > > 21804static int > 21805ix86_insn_cost (rtx_insn *insn, bool speed) > 21806{ > 21807 int insn_cost = 0; > 21808 /* Add extra cost to avoid post_reload late

RE: Make ix86 cost of VEC_SELECT equivalent to SUBREG same as of SUBREG

2025-04-29 Thread Liu, Hongtao
> -Original Message- > From: Jan Hubicka > Sent: Wednesday, April 30, 2025 4:11 AM > To: gcc-patches@gcc.gnu.org; Liu, Hongtao ; > ro...@nextmovesoftware.com; ubiz...@gmail.com > Subject: Make ix86 cost of VEC_SELECT equivalent to SUBREG same as of > SUBREG

Make ix86 cost of VEC_SELECT equivalent to SUBREG same as of SUBREG

2025-04-29 Thread Jan Hubicka
Hi, this patch (partly) solves problem in PR119900 where changing ix86_size_cost of chap SSE instruction from 2 bytes to 4 bytes regresses imagemagick with PGO (119% on core and 54% on Zen) There is an interesting chain of problems 1) the train run of the SPEC2017 imagick is wrong and it does not