From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EE97F38708D5; Fri, 4 Sep 2020 08:34:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE97F38708D5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1599208488; bh=5ouxWlE79G2bcLRq0FCyc3z2hRQkXPWgCJfk1ABtmrk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=th4NCPZuHQFWM+k+kF/P3GLE0gO9QA/bIbTRiVb+3tAWyNVBlVIgeVxtB4scCpJjx s1EnSIN30xlzEH1Oa+2elO+pU7l4tAVDjR3dMda3PVYxxdZK/RkS+sBzY1Dl+nSk5s RcraDzVfXwdLT9kSDQ+RY3t9kcQ79kPhAwzIfMv8= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/96931] [11 Regression] ICE in add_phi_arg, at tree-phinodes.c:359 Date: Fri, 04 Sep 2020 08:34:48 +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: ice-on-valid-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: Fri, 04 Sep 2020 08:34:49 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96931 --- Comment #3 from Richard Biener --- So the testcase only triggers on trunk because store commoning is new there= and it transforms (interestingly!) [local count: 10631108]: p3 (); bl =3D 0; [local count: 1073741824]: bl.0_1 =3D bl; _2 =3D bl.0_1 + 1; bl =3D _2; goto ; [100.00%] to [local count: 10631108]: p3 (); [local count: 1073741824]: # _8 =3D PHI <0(2), _2(3)> bl =3D _8; bl.0_1 =3D bl; _2 =3D bl.0_1 + 1; goto ; [100.00%] which predcom tries to "improve" to [local count: 10631108]: p3 (); _10 =3D bl; [local count: 1073741824]: # _8 =3D PHI <0(2), _2(4)> # bl_lsm0.3_7 =3D PHI <_10(2), bl_lsm0.3_6(4)> bl =3D _8; bl_lsm0.3_6 =3D _8; bl.0_1 =3D bl_lsm0.3_6; _2 =3D bl.0_1 + 1; [local count: 1073741824]: goto ; [100.00%] so the situation is quite arcane and eventually not worth fixing on branche= s.=