Re: [PATCH] CSE negated multiplications and divisions

2020-09-21 Thread Richard Biener
On Fri, 18 Sep 2020, Segher Boessenkool wrote: > Hi! > > On Thu, Sep 17, 2020 at 01:20:35PM +0200, Richard Biener wrote: > > This adds the capability to look for available negated multiplications > > and divisions, replacing them with cheaper negates. > > It is longer latency than the original i

Re: [PATCH] CSE negated multiplications and divisions

2020-09-18 Thread Segher Boessenkool
Hi! On Thu, Sep 17, 2020 at 01:20:35PM +0200, Richard Biener wrote: > This adds the capability to look for available negated multiplications > and divisions, replacing them with cheaper negates. It is longer latency than the original insns. Combine will try to undo this, because of that (it depe

Re: [PATCH] CSE negated multiplications and divisions

2020-09-18 Thread Christophe Lyon via Gcc-patches
On Thu, 17 Sep 2020 at 13:20, Richard Biener wrote: > > This adds the capability to look for available negated multiplications > and divisions, replacing them with cheaper negates. > > Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed. > This patch caused a regression in fortran, I file

[PATCH] CSE negated multiplications and divisions

2020-09-17 Thread Richard Biener
This adds the capability to look for available negated multiplications and divisions, replacing them with cheaper negates. Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed. 2020-09-17 Richard Biener * tree-ssa-sccvn.c (visit_nary_op): Value-number multiplications an