Re: [PATCH 1/4] Canonicalize argument order for commutative functions

2021-11-29 Thread Richard Biener via Gcc-patches
On Mon, Nov 29, 2021 at 4:40 PM Richard Sandiford wrote: > > Sorry for the slow response, was away last week. > > Richard Biener writes: > > On Wed, Nov 10, 2021 at 1:50 PM Richard Sandiford via Gcc-patches > > wrote: > >> > >> This patch uses information about internal functions to canonicalize

Re: [PATCH 1/4] Canonicalize argument order for commutative functions

2021-11-29 Thread Richard Sandiford via Gcc-patches
Sorry for the slow response, was away last week. Richard Biener writes: > On Wed, Nov 10, 2021 at 1:50 PM Richard Sandiford via Gcc-patches > wrote: >> >> This patch uses information about internal functions to canonicalize >> the argument order of calls. >> >> Tested on aarch64-linux-gnu and x8

Re: [PATCH 1/4] Canonicalize argument order for commutative functions

2021-11-11 Thread Richard Biener via Gcc-patches
On Wed, Nov 10, 2021 at 1:50 PM Richard Sandiford via Gcc-patches wrote: > > This patch uses information about internal functions to canonicalize > the argument order of calls. > > Tested on aarch64-linux-gnu and x86_64-linux-gnu. OK to install? OK. Note the gimple_resimplifyN functions also ca

[PATCH 1/4] Canonicalize argument order for commutative functions

2021-11-10 Thread Richard Sandiford via Gcc-patches
This patch uses information about internal functions to canonicalize the argument order of calls. Tested on aarch64-linux-gnu and x86_64-linux-gnu. OK to install? Richard gcc/ * gimple-fold.c: Include internal-fn.h. (fold_stmt_1): If a function maps to an internal one, use