public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 0/3] start of moving value replacement from phiopt to match
@ 2023-10-29 16:40 Andrew Pinski
  2023-10-29 16:40 ` [PATCH 1/3] MATCH: first of the value replacement moving from phiopt Andrew Pinski
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Andrew Pinski @ 2023-10-29 16:40 UTC (permalink / raw)
  To: gcc-patches; +Cc: Andrew Pinski

This set of 3 patches, copy what is being done in value replacement and
puts it into match-and-simplify form. I will be rewriting value_replacement
in phiopt to use match and simplify directly in the next few months but
I thought getting these into match form earlier on can help improve code
generation independently of that move.

Note this does not add the absorbing_element_p optimizations yet; I filed PR 112271
to record that move.

Andrew Pinski (3):
  MATCH: first of the value replacement moving from phiopt
  MATCH: Move jump_function_from_stmt support to match.pd
  MATCH: Add some more value_replacement simplifications to match

 gcc/match.pd                                  | 53 +++++++++++++++++++
 .../analyzer/inlining-3-multiline.c           |  5 +-
 .../c-c++-common/analyzer/inlining-3.c        |  3 ++
 gcc/testsuite/gcc.dg/tree-ssa/cond-1.c        | 17 ++++++
 .../gcc.dg/tree-ssa/phi-opt-value-1.c         | 17 ++++++
 .../gcc.dg/tree-ssa/phi-opt-value-1a.c        | 19 +++++++
 .../gcc.dg/tree-ssa/phi-opt-value-2.c         | 19 +++++++
 .../gcc.dg/tree-ssa/phi-opt-value-3.c         | 22 ++++++++
 .../gcc.dg/tree-ssa/phi-opt-value-4.c         | 36 +++++++++++++
 gcc/testsuite/gcc.dg/tree-ssa/vrp03.c         |  2 +-
 10 files changed, 191 insertions(+), 2 deletions(-)
 create mode 100644 gcc/testsuite/gcc.dg/tree-ssa/cond-1.c
 create mode 100644 gcc/testsuite/gcc.dg/tree-ssa/phi-opt-value-1.c
 create mode 100644 gcc/testsuite/gcc.dg/tree-ssa/phi-opt-value-1a.c
 create mode 100644 gcc/testsuite/gcc.dg/tree-ssa/phi-opt-value-2.c
 create mode 100644 gcc/testsuite/gcc.dg/tree-ssa/phi-opt-value-3.c
 create mode 100644 gcc/testsuite/gcc.dg/tree-ssa/phi-opt-value-4.c

-- 
2.39.3


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

end of thread, other threads:[~2023-10-30 20:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-29 16:40 [PATCH 0/3] start of moving value replacement from phiopt to match Andrew Pinski
2023-10-29 16:40 ` [PATCH 1/3] MATCH: first of the value replacement moving from phiopt Andrew Pinski
2023-10-30  9:32   ` Richard Biener
2023-10-29 16:40 ` [PATCH 2/3] MATCH: Move jump_function_from_stmt support to match.pd Andrew Pinski
2023-10-30  9:29   ` Richard Biener
2023-10-30 20:36     ` Andrew Pinski
2023-10-29 16:40 ` [PATCH 3/3] MATCH: Add some more value_replacement simplifications to match Andrew Pinski
2023-10-30  9:30   ` 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).