From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7D8A53858D28; Wed, 17 Nov 2021 11:32:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D8A53858D28 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103226] [12 Regression] Recent change to copy-headers causes execution failure for gcc.dg/torture/pr80974 Date: Wed, 17 Nov 2021 11:32:17 +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: 12.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: Wed, 17 Nov 2021 11:32:17 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103226 --- Comment #5 from Aldy Hernandez --- FWIW, the *.ch2 dump on both x86-64 and bfin-elf are identical. This is unlikely to help, but... In *.ivopts we start seeing differences in the IL: [local count: 60236916]: e =3D 1; + ivtmp.29_7 =3D (unsigned int) &g; goto ; [100.00%] [local count: 60236916]: @@ -593,7 +590,8 @@ goto ; [50.00%] [local count: 1625827684]: - MEM[(int *)&g + ivtmp.26_25 * 4] =3D 4; + _8 =3D (void *) ivtmp.29_25; + MEM[(int *)_8] =3D 4; [local count: 3251655368]: ivtmp_15 =3D ivtmp_14 - 1; @@ -603,8 +601,9 @@ goto ; [14.29%] [local count: 542132239]: - ivtmp.26_10 =3D ivtmp.26_25 + 1; - if (ivtmp.26_10 !=3D 9) + h_11 =3D h_6 + 1; + ivtmp.29_10 =3D ivtmp.29_25 + 4; + if (h_11 !=3D 9) goto ; [90.00%] else goto ; [10.00%] @@ -612,7 +611,8 @@ [local count: 487919014]: [local count: 542132239]: - # ivtmp.26_25 =3D PHI + # h_6 =3D PHI + # ivtmp.29_25 =3D PHI goto ; [100.00%]=