From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3BC063858D37; Mon, 15 May 2023 06:39:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3BC063858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684132749; bh=JAMYEkj3FFg2liO44kDEPg6fpuHEQ0sRV/WyGlRJS3c=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HZaQtCoyVcdMafTKTV6yfV0mqD3YLEAM9cvS6JIwZKrZnRbzSOEiQBv96VdT1bj6N 7u1jTkis/0gMLkTyqZuT6v5X4TpXguKz41PPCjHPhKmJ9Q5I2BSS55dtH88dTBWsCN 0S/k46Z16yTx3/t6/tb87bINeElwWjnX0SSl/dCo= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/68855] PAREN_EXPR not "ignored" where possible Date: Mon, 15 May 2023 06:39:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68855 --- Comment #3 from Richard Biener --- (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)) >=20 > Is enough. Maybe it's a task for backprop instead? It at least "feels" similar ...=