Re: [PATCH] [i386] Add a separate function to calculate cost for WIDEN_MULT_EXPR.

2021-07-28 Thread Hongtao Liu via Gcc-patches
On Wed, Jul 28, 2021 at 8:36 PM Richard Biener wrote: > > On Wed, Jul 28, 2021 at 10:35 AM liuhongt wrote: > > > > Hi: > > As described in PR 39821, WIDEN_MULT_EXPR should use a different cost > > model from MULT_EXPR, this patch add ix86_widen_mult_cost for that. > > Reference basis for the

Re: [PATCH] [i386] Add a separate function to calculate cost for WIDEN_MULT_EXPR.

2021-07-28 Thread Richard Biener via Gcc-patches
On Wed, Jul 28, 2021 at 10:35 AM liuhongt wrote: > > Hi: > As described in PR 39821, WIDEN_MULT_EXPR should use a different cost > model from MULT_EXPR, this patch add ix86_widen_mult_cost for that. > Reference basis for the cost model is https://godbolt.org/z/EMjaz4Knn. > > Bootstrapped and

[PATCH] [i386] Add a separate function to calculate cost for WIDEN_MULT_EXPR.

2021-07-28 Thread liuhongt via Gcc-patches
Hi: As described in PR 39821, WIDEN_MULT_EXPR should use a different cost model from MULT_EXPR, this patch add ix86_widen_mult_cost for that. Reference basis for the cost model is https://godbolt.org/z/EMjaz4Knn. Bootstrapped and regtested on x86_64-linux-gnu{-m32,}. gcc/ChangeLog: