public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 0/6] Improve PHIOPT match and simplify for diamond shaped bbs
@ 2023-04-22 22:09 Andrew Pinski
  2023-04-22 22:09 ` [PATCH 1/6] PHIOPT: Move check on diamond bb to tree_ssa_phiopt_worker from minmax_replacement Andrew Pinski
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Andrew Pinski @ 2023-04-22 22:09 UTC (permalink / raw)
  To: gcc-patches; +Cc: Andrew Pinski

This set of patches implement match and simplify for diamond shaped bbs.
Right now there are no match-and-simplify patterns which take advantages
of this directly. Though predicates can cause a diamond shaped bb to
show up in phiopt1 even though the BB is empty. This allows
for that and fixes phi-opt-23.c/phi-opt-24.c testcases.


Andrew Pinski (6):
  PHIOPT: Move check on diamond bb to tree_ssa_phiopt_worker from
    minmax_replacement
  PHIOPT: Cleanup tree_ssa_phiopt_worker code
  PHIOPT: Allow other diamond uses when do_hoist_loads is true
  PHIOPT: Factor out some code from match_simplify_replacement
  PHIOPT: Ignore predicates for match-and-simplify phi-opt
  PHIOPT: Add support for diamond shaped bb to
    match_simplify_replacement

 gcc/testsuite/gcc.dg/tree-ssa/phi-opt-23.c    |   4 +-
 gcc/testsuite/gcc.dg/tree-ssa/phi-opt-24.c    |   4 +-
 .../gcc.dg/tree-ssa/ssa-ifcombine-13.c        |   4 +-
 gcc/tree-ssa-phiopt.cc                        | 360 ++++++++++--------
 4 files changed, 218 insertions(+), 154 deletions(-)

-- 
2.39.1


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

end of thread, other threads:[~2023-04-24 12:09 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-22 22:09 [PATCH 0/6] Improve PHIOPT match and simplify for diamond shaped bbs Andrew Pinski
2023-04-22 22:09 ` [PATCH 1/6] PHIOPT: Move check on diamond bb to tree_ssa_phiopt_worker from minmax_replacement Andrew Pinski
2023-04-24 12:01   ` Richard Biener
2023-04-22 22:09 ` [PATCH 2/6] PHIOPT: Cleanup tree_ssa_phiopt_worker code Andrew Pinski
2023-04-24 12:06   ` Richard Biener
2023-04-22 22:09 ` [PATCH 3/6] PHIOPT: Allow other diamond uses when do_hoist_loads is true Andrew Pinski
2023-04-24 12:06   ` Richard Biener
2023-04-22 22:09 ` [PATCH 4/6] PHIOPT: Factor out some code from match_simplify_replacement Andrew Pinski
2023-04-24 12:02   ` Richard Biener
2023-04-22 22:09 ` [PATCH 5/6] PHIOPT: Ignore predicates for match-and-simplify phi-opt Andrew Pinski
2023-04-24 12:05   ` Richard Biener
2023-04-22 22:09 ` [PATCH 6/6] PHIOPT: Add support for diamond shaped bb to match_simplify_replacement Andrew Pinski
2023-04-24 12:07   ` 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).