Re: [PATCH] MATCH: Add Max,a> -> Max simplifcation

2023-07-20 Thread Richard Biener via Gcc-patches
On Fri, Jul 21, 2023 at 6:06 AM Andrew Pinski via Gcc-patches wrote: > > This adds a simple match pattern to simplify > `max,a>` to `max`. Reassociation handles > this already (r0-77700-ge969dbde29bfd396259357) but > seems like we should be able to handle this even before > reassociation. > > Thi

[PATCH] MATCH: Add Max,a> -> Max simplifcation

2023-07-20 Thread Andrew Pinski via Gcc-patches
This adds a simple match pattern to simplify `max,a>` to `max`. Reassociation handles this already (r0-77700-ge969dbde29bfd396259357) but seems like we should be able to handle this even before reassociation. This fixes part of PR tree-optimization/80574 but more work is needed fix it the rest of