Re: [PATCH] expand: Expand x / y * y as x - x % y if the latter is cheaper [PR96696]

2021-04-26 Thread Richard Biener
On Fri, 23 Apr 2021, Jakub Jelinek wrote: > On Tue, Feb 02, 2021 at 11:38:11AM -0700, Jeff Law via Gcc-patches wrote: > > On 1/16/21 11:13 AM, Jakub Jelinek wrote: > > > Hi! > > > > > > The following patch tests both x / y * y and x - x % y expansion for the > > > former GIMPLE code and chooses

Re: [PATCH] expand: Expand x / y * y as x - x % y if the latter is cheaper [PR96696]

2021-04-23 Thread Jakub Jelinek via Gcc-patches
On Tue, Feb 02, 2021 at 11:38:11AM -0700, Jeff Law via Gcc-patches wrote: > On 1/16/21 11:13 AM, Jakub Jelinek wrote: > > Hi! > > > > The following patch tests both x / y * y and x - x % y expansion for the > > former GIMPLE code and chooses the cheaper of those sequences. > > > >

Re: [PATCH] expand: Expand x / y * y as x - x % y if the latter is cheaper [PR96696]

2021-02-02 Thread Jeff Law via Gcc-patches
On 1/16/21 11:13 AM, Jakub Jelinek wrote: > Hi! > > The following patch tests both x / y * y and x - x % y expansion for the > former GIMPLE code and chooses the cheaper of those sequences. > > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? > > 2021-01-16 Jakub Jelinek

[PATCH] expand: Expand x / y * y as x - x % y if the latter is cheaper [PR96696]

2021-01-16 Thread Jakub Jelinek via Gcc-patches
Hi! The following patch tests both x / y * y and x - x % y expansion for the former GIMPLE code and chooses the cheaper of those sequences. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2021-01-16 Jakub Jelinek PR tree-optimization/96696 * expr.c