public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 0/4] v4 PHI-OPT move abs_replacement to match.pd
@ 2021-06-27 23:24 apinski
  2021-06-27 23:24 ` [PATCH 1/4] Duplicate the range information of the phi onto the new ssa_name apinski
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: apinski @ 2021-06-27 23:24 UTC (permalink / raw)
  To: gcc-patches; +Cc: Andrew Pinski

From: Andrew Pinski <apinski@marvell.com>

To able to move PHI-OPT's abs_replacement to match.pd, a bunch
of support needed to be added to PHI-OPT.
This is a set of 4 (unapproved) patches which allows us to remove
abs_replacement and even does one set further and does a few extra
transformations that abs_replacement did not do (just because of
the moving from fold to match).

v3 to v4 Changes:
* pushed the approved patches which are not dependent on unapproved ones
* Change 1st patch to only duplicate in one direction and expanded comment
  on why it is safe and what it is needed

Andrew Pinski (4):
  Duplicate the range information of the phi onto the new ssa_name
  Allow match-and-simplified phiopt to run in early phiopt
  Try inverted comparison for match_simplify in phiopt
  Port most of the A CMP 0 ? A : -A to match

 gcc/match.pd                               |  60 +++++
 gcc/testsuite/gcc.dg/tree-ssa/phi-opt-15.c |   4 +-
 gcc/tree-ssa-phiopt.c                      | 291 +++++++++------------
 3 files changed, 185 insertions(+), 170 deletions(-)

-- 
2.27.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-06-29 19:54 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-27 23:24 [PATCH 0/4] v4 PHI-OPT move abs_replacement to match.pd apinski
2021-06-27 23:24 ` [PATCH 1/4] Duplicate the range information of the phi onto the new ssa_name apinski
2021-06-28  8:39   ` Richard Biener
2021-06-29 19:02   ` Martin Sebor
2021-06-27 23:24 ` [PATCH 2/4] Allow match-and-simplified phiopt to run in early phiopt apinski
2021-06-28  8:40   ` Richard Biener
2021-06-29 19:11   ` Martin Sebor
2021-06-29 19:54     ` Andrew Pinski
2021-06-27 23:24 ` [PATCH 3/4] Try inverted comparison for match_simplify in phiopt apinski
2021-06-28  5:28   ` Bernhard Reutner-Fischer
2021-06-28  8:44   ` Richard Biener
2021-06-27 23:25 ` [PATCH 4/4] Port most of the A CMP 0 ? A : -A to match apinski
2021-06-28  9:26   ` Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).