public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/68855] PAREN_EXPR not "ignored" where possible
[not found] <bug-68855-4@http.gcc.gnu.org/bugzilla/>
@ 2023-05-14 23:30 ` pinskia at gcc dot gnu.org
2023-05-15 6:39 ` rguenth at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-05-14 23:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68855
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Maybe:
(simplify
(paren (complex_expr @0 @1))
(complex_expr (paren @0) (paren @1))
(simplify
(paren (real_expr @0))
(real_expr (paren @0))
(simplify
(paren (imag_expr @0))
(real_expr (paren @0))
Is enough.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug middle-end/68855] PAREN_EXPR not "ignored" where possible
[not found] <bug-68855-4@http.gcc.gnu.org/bugzilla/>
2023-05-14 23:30 ` [Bug middle-end/68855] PAREN_EXPR not "ignored" where possible pinskia at gcc dot gnu.org
@ 2023-05-15 6:39 ` rguenth at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-05-15 6:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68855
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #2)
> Maybe:
> (simplify
> (paren (complex_expr @0 @1))
> (complex_expr (paren @0) (paren @1))
That makes the tree larger though ...
But yes, if we have (complex (real (complex@0)) (imag (complex@0))
and the inner complex are wrapped that would help.
> (simplify
> (paren (real_expr @0))
> (real_expr (paren @0))
> (simplify
> (paren (imag_expr @0))
> (real_expr (paren @0))
>
> Is enough.
Maybe it's a task for backprop instead? It at least "feels" similar ...
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-05-15 6:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-68855-4@http.gcc.gnu.org/bugzilla/>
2023-05-14 23:30 ` [Bug middle-end/68855] PAREN_EXPR not "ignored" where possible pinskia at gcc dot gnu.org
2023-05-15 6:39 ` rguenth at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).