Re: [PATCH v2] match: Simplify doubled not, negate and conjugate operators to a non_lvalue

2025-06-23 Thread Mikael Morin
Le 23/06/2025 à 09:17, Richard Biener a écrit : On Sun, Jun 22, 2025 at 2:11 PM Mikael Morin wrote: From: Mikael Morin Changes v1 -> v2: - Also handle complex conjugate operator. That's OK. - Don't create the NON_LVALUE_EXPR if there is a type conversion between the doubled opera

Re: [PATCH v2] match: Simplify doubled not, negate and conjugate operators to a non_lvalue

2025-06-23 Thread Richard Biener
On Sun, Jun 22, 2025 at 2:11 PM Mikael Morin wrote: > > From: Mikael Morin > > Changes v1 -> v2: > - Also handle complex conjugate operator. That's OK. > - Don't create the NON_LVALUE_EXPR if there is a type conversion between the >doubled operators. We're not doing that elsewhere so I'd

[PATCH v2] match: Simplify doubled not, negate and conjugate operators to a non_lvalue

2025-06-21 Thread Mikael Morin
From: Mikael Morin Changes v1 -> v2: - Also handle complex conjugate operator. - Don't create the NON_LVALUE_EXPR if there is a type conversion between the doubled operators. Regression tested on x86_64-linux. OK for master? -- 8< -- gcc/ChangeLog: * match.pd (`-(-X)`, `~(~X)`,