From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8F4603890431; Thu, 20 Jun 2024 18:09:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8F4603890431 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1718906962; bh=3s+ofdKo6OcLaLIfJyfEVxxpfexorA/Dfqk/5eoOhV0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wq0w1pGP61/alKnGftZ+CVIpSdZeu0P5uXnJXU11GZ0ayxhOcFb+mkB9O+t9SjQ+3 U60OVNycQP30cIE9AUq7+4CNpe/BH94yHinfQwOp+kpfQnIsOvOdslPC+xOykviKKA SWj0MGQ5JaiquRYi5JUFRHPitd9LSzF/beoPUK8I= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/68855] PAREN_EXPR not "ignored" where possible Date: Thu, 20 Jun 2024 18:09:22 +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: pinskia 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 #6 from Andrew Pinski --- I wonder if lower complex should do a better job in the first place: that is from: _9 =3D _8 + __complex__ (6.0e+0, 1.0e+0); _11 =3D ((_9)); (*a_7(D))[_6] =3D _11; instead of producing: _9 =3D COMPLEX_EXPR <_15, _14>; _11 =3D ((_9)); _19 =3D REALPART_EXPR <_11>; _20 =3D IMAGPART_EXPR <_11>; It should produce: _19 =3D ((_15)); _20 =3D ((_24)); Instead. that is expand PAREN_EXPR into its components.=