Re: [PATCH] Increase rtx_cost of sse_to_integer in skylake_cost.

2020-09-19 Thread H.J. Lu via Gcc-patches
On Thu, Sep 17, 2020 at 11:11 PM Hongtao Liu wrote: > > On Thu, Sep 17, 2020 at 12:10 PM Jeff Law wrote: > > > > > > On 9/15/20 9:20 PM, Hongtao Liu via Gcc-patches wrote: > > > Hi: > > > Rtx cost of sse_to_integer would be used by pass_stv as a > > > measurement for the scalar-to-vector

Re: [PATCH] Increase rtx_cost of sse_to_integer in skylake_cost.

2020-09-18 Thread Hongtao Liu via Gcc-patches
On Thu, Sep 17, 2020 at 12:10 PM Jeff Law wrote: > > > On 9/15/20 9:20 PM, Hongtao Liu via Gcc-patches wrote: > > Hi: > > Rtx cost of sse_to_integer would be used by pass_stv as a > > measurement for the scalar-to-vector transformation. As > >

Re: [PATCH] Increase rtx_cost of sse_to_integer in skylake_cost.

2020-09-16 Thread Jeff Law via Gcc-patches
On 9/15/20 9:20 PM, Hongtao Liu via Gcc-patches wrote: > Hi: > Rtx cost of sse_to_integer would be used by pass_stv as a > measurement for the scalar-to-vector transformation. As > https://gcc.gnu.org/pipermail/gcc-patches/2019-August/528839.html > indicates, movement between sse regs and gprs

Re: [PATCH] Increase rtx_cost of sse_to_integer in skylake_cost.

2020-09-16 Thread Hongtao Liu via Gcc-patches
Thanks. On Wed, Sep 16, 2020 at 8:54 PM Uros Bizjak wrote: > > > gcc/ChangeLog > > > > PR target/96861 > > * config/i386/x86-tune-costs.h (skylake_cost): increase rtx > > cost of sse_to_integer from 2 to 6. > > > > gcc/testsuite > > > > *

Re: [PATCH] Increase rtx_cost of sse_to_integer in skylake_cost.

2020-09-16 Thread Uros Bizjak via Gcc-patches
> gcc/ChangeLog > > PR target/96861 > * config/i386/x86-tune-costs.h (skylake_cost): increase rtx > cost of sse_to_integer from 2 to 6. > > gcc/testsuite > > * gcc.target/i386/pr95021-3.c: Add -mtune=generic. OK. Thanks, Uros.

[PATCH] Increase rtx_cost of sse_to_integer in skylake_cost.

2020-09-15 Thread Hongtao Liu via Gcc-patches
Hi: Rtx cost of sse_to_integer would be used by pass_stv as a measurement for the scalar-to-vector transformation. As https://gcc.gnu.org/pipermail/gcc-patches/2019-August/528839.html indicates, movement between sse regs and gprs should be much expensive than movement inside gprs(which is 2 as