From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 203A53857802; Fri, 22 Oct 2021 05:42:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 203A53857802 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/102681] [12 Regression] AArch64 bootstrap failure Date: Fri, 22 Oct 2021 05:42:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: build, diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: 12.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, 22 Oct 2021 05:42:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102681 --- Comment #15 from Andrew Pinski --- So the major difference comes from mark_stack_region_used. We have a missing jump thread in ethread. Before the patch, ethread was able to jump thread all the way through: if (_13 !=3D 0) goto ; [5.50%] else goto ; [94.50%] : # _22 =3D PHI <0(2)> goto ; [INV] : # _18 =3D PHI <1(2)> _15 =3D upper_bound.coeffs[0]; goto ; [100.00%] : But after we get: : _13 =3D upper_bound.coeffs[1]; if (_13 !=3D 0) goto ; [5.50%] else goto ; [94.50%] : # _22 =3D PHI <0(2)> goto ; [100.00%] : # _9 =3D PHI <1(2)> _15 =3D upper_bound.coeffs[0]; : # _16 =3D PHI <0(3), 1(4)> # const_upper_20 =3D PHI if (_16 !=3D 0) goto ; [INV] else goto ; [INV] We totally missed the jump threading of 3->5->7 path and the 4->5->8 path. Aldy, Can you look into why there is a missing jump threading there?=