From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 17B363851A9B; Mon, 13 Jun 2022 12:35:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 17B363851A9B From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/105832] [13 Regression] Dead Code Elimination Regression at -O3 (trunk vs. 12.1.0) Date: Mon, 13 Jun 2022 12:35:41 +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: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc cf_reconfirmed_on cc target_milestone keywords everconfirmed bug_status 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, 13 Jun 2022 12:35:42 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105832 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Dead Code Elimination |[13 Regression] Dead Code |Regression at -O3 (trunk |Elimination Regression at |vs. 12.1.0) |-O3 (trunk vs. 12.1.0) Last reconfirmed| |2022-06-13 CC| |rguenth at gcc dot gnu.org Target Milestone|--- |13.0 Keywords| |missed-optimization Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #1 from Richard Biener --- Confirmed. GCC 12: t.c:12:23: optimized: Unswitching loop on condition: if (iftmp.0_9 <=3D 1) t.c:12:23: optimized: Unswitching loop on condition: if (iftmp.0_9 =3D=3D 1) t.c:12:23: optimized: Unswitching loop on condition: if (iftmp.1_10 !=3D 0) t.c:12:23: optimized: Unswitching loop on condition: if (iftmp.1_10 !=3D 0) and trunk: t.c:12:23: optimized: unswitching loop 1 on =E2=80=98if=E2=80=99 with condi= tion: iftmp.0_9 <=3D 1 t.c:12:23: optimized: unswitching loop 1 on =E2=80=98if=E2=80=99 with condi= tion: iftmp.1_10 !=3D 0 t.c:12:23: optimized: unswitching loop 1 on =E2=80=98if=E2=80=99 with condi= tion: iftmp.0_9 =3D=3D 1 somehow trunk doesn't consider the 2nd iftmp.1_10 !=3D 0 condition.=