From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C7FED385840D; Tue, 17 Oct 2023 13:11:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C7FED385840D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697548310; bh=YlZqsUcmnUE2vyfK8ivKOCkIDZbexXZGzpoft1wyivs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dDaVC6HWqN56ejs+0E+iEgH11cg4QwA0M/dl9l4oZXIqi1bzvD4TNkP0xMUGUw37H ZM4J/Y5M04Gl7+kYxguFcK6QlPMxJ/MtOqYO7rIGXEOMxjILDYw1PJUtdmj/KL4xrS gSCXcYUxGsMWmiGItfHfdEnGWSVSPxc3449JHO7Q= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111734] [14 Regression] wrong code with '-O3 -fno-inline-functions-called-once -fno-inline-small-functions -fno-omit-frame-pointer -fno-toplevel-reorder -fno-tree-fre' Date: Tue, 17 Oct 2023 13:11:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: needs-reduction, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc priority 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=3D111734 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org, | |jamborm at gcc dot gnu.org, | |rguenth at gcc dot gnu.org Priority|P3 |P1 --- Comment #4 from Richard Biener --- -fno-ipa-modref fixes it. Fails with -O3 -fno-inline -fno-toplevel-reorder -fno-tree-fre --- a-t.c.146t.pre 2023-10-17 15:07:52.544953598 +0200 +++ a-t.c.146t.pre.bad 2023-10-17 15:07:45.788953643 +0200 @@ -25,7 +25,6 @@ int _4; [local count: 1073741824]: - i =3D &e; g.constprop (&i); i.2_3 =3D i; _4 =3D *i.2_3; I think this is a duplicate of the modref / IPA-CP issue (failing to rememb= er the PR number) which IIRC has a patch under review.=