Re: [PATCH] match: Simplify double not and double negate to a non_lvalue

2025-06-23 Thread Richard Biener
On Fri, Jun 20, 2025 at 3:47 PM Mikael Morin wrote: > > From: Mikael Morin > > Regression tested on x86_64-linux. OK for master? OK. Thanks, Richard. > -- 8< -- > > gcc/ChangeLog: > > * match.pd (`-(-X)`, `~(~X)`): Add a NON_LVALUE_EXPR wrapper to the > simplification of doub

[PATCH] match: Simplify double not and double negate to a non_lvalue

2025-06-20 Thread Mikael Morin
From: Mikael Morin Regression tested on x86_64-linux. OK for master? -- 8< -- gcc/ChangeLog: * match.pd (`-(-X)`, `~(~X)`): Add a NON_LVALUE_EXPR wrapper to the simplification of doubled unary operators NEGATE_EXPR and BIT_NOT_EXPR. gcc/testsuite/ChangeLog: *