From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6A025384BC3C; Mon, 21 Sep 2020 10:50:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6A025384BC3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1600685400; bh=e1vGs2Y4N6w93fmIK1CJOnZbbfK0yqv/bLqRR0tdg8Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=x4B/vV06MkdVZAtAGINIH3X6NKSRtHaCBDHaHLFk1+9VpgkzYh5US6PdCLftujums wIDdidiAwvfs2nNKfPU5P1q2fvHEcbf7nVEa1y5UhfUZMc9hlLi75V24P6P60tX3KK eGxVGFElkeR5UgynjtQHyQUIqdZL4WtVaNu1xouw= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/97135] [11 Regression] Wrong code at -Os since r11-408-g84935c98221 Date: Mon, 21 Sep 2020 10:50:00 +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: 11.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Sep 2020 10:50:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97135 --- Comment #3 from Richard Biener --- It's lim4 that does the bogus transform. It seems to be confused by the de= ad store in BB3: [local count: 118111600]: a =3D 1; a =3D 6; *d.2_3 =3D 0; ivtmp.15_9 =3D ivtmp.15_24 + 1; if (c.7_7 !=3D 0) goto ; [5.50%] else goto ; [94.50%] and re-materializes the a =3D 1 store but not the a =3D 6 one.=