Re: [PATCH 1/2] Match: Add maybe_bit_not instead of plain matching

2024-05-29 Thread Richard Biener
On Mon, May 27, 2024 at 2:47 AM Andrew Pinski wrote: > > While working on adding matching of negative expressions of `a - b`, > I noticed that we started to have "duplicated" patterns due to not having > a way to match maybe negative expressions. So I went back to what I did for > bit_not and deci

[PATCH 1/2] Match: Add maybe_bit_not instead of plain matching

2024-05-26 Thread Andrew Pinski
While working on adding matching of negative expressions of `a - b`, I noticed that we started to have "duplicated" patterns due to not having a way to match maybe negative expressions. So I went back to what I did for bit_not and decided to improve the situtation there so for some patterns where w