Re: [PATCH 2/2] [PHIOPT/MATCH] Remove the statement to move if not used

2021-07-09 Thread Richard Biener via Gcc-patches
On Fri, Jul 9, 2021 at 9:16 AM Andrew Pinski wrote: > > On Thu, Jul 8, 2021 at 11:50 PM Richard Biener via Gcc-patches > wrote: > > > > On Fri, Jul 9, 2021 at 7:34 AM apinski--- via Gcc-patches > > wrote: > > > > > > From: Andrew Pinski > > > > > > Instead of waiting for DCE to remove the unuse

Re: [PATCH 2/2] [PHIOPT/MATCH] Remove the statement to move if not used

2021-07-09 Thread Andrew Pinski via Gcc-patches
On Thu, Jul 8, 2021 at 11:50 PM Richard Biener via Gcc-patches wrote: > > On Fri, Jul 9, 2021 at 7:34 AM apinski--- via Gcc-patches > wrote: > > > > From: Andrew Pinski > > > > Instead of waiting for DCE to remove the unused statement, > > and maybe optimize another conditional, it is better if

Re: [PATCH 2/2] [PHIOPT/MATCH] Remove the statement to move if not used

2021-07-08 Thread Richard Biener via Gcc-patches
On Fri, Jul 9, 2021 at 7:34 AM apinski--- via Gcc-patches wrote: > > From: Andrew Pinski > > Instead of waiting for DCE to remove the unused statement, > and maybe optimize another conditional, it is better if > we don't move the statement and have the statement > removed. > > gcc/ChangeLog: > >

[PATCH 2/2] [PHIOPT/MATCH] Remove the statement to move if not used

2021-07-08 Thread apinski--- via Gcc-patches
From: Andrew Pinski Instead of waiting for DCE to remove the unused statement, and maybe optimize another conditional, it is better if we don't move the statement and have the statement removed. gcc/ChangeLog: * tree-ssa-phiopt.c (used_in_seq): New function. (match_simplify_repl