Re: [PATCH] Dump if a pattern fails after having printed applying it

2023-05-24 Thread Andrew Pinski via Gcc-patches
On Wed, May 24, 2023 at 2:03 AM Richard Biener via Gcc-patches wrote: > > On Wed, May 24, 2023 at 1:16 AM Andrew Pinski via Gcc-patches > wrote: > > > > While trying to understand how to use the ! operand for match > > patterns, I noticed that the debug dumps would print out applying > > a patter

Re: [PATCH] Dump if a pattern fails after having printed applying it

2023-05-24 Thread Richard Biener via Gcc-patches
On Wed, May 24, 2023 at 1:16 AM Andrew Pinski via Gcc-patches wrote: > > While trying to understand how to use the ! operand for match > patterns, I noticed that the debug dumps would print out applying > a pattern but nothing when it was rejected in the end. This was confusing > me. > This adds t

[PATCH] Dump if a pattern fails after having printed applying it

2023-05-23 Thread Andrew Pinski via Gcc-patches
While trying to understand how to use the ! operand for match patterns, I noticed that the debug dumps would print out applying a pattern but nothing when it was rejected in the end. This was confusing me. This adds that by emitting a dump for the failed case. Note the patch is little more complex