From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 11036385780F; Thu, 10 Jun 2021 07:26:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 11036385780F From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/101001] [9/10/11/12 Regression] wrong code at -O3 on x86_64-linux-gnu Date: Thu, 10 Jun 2021 07:26:08 +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: needs-bisection, wrong-code 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: 9.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on everconfirmed bug_status dependson 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: Thu, 10 Jun 2021 07:26:09 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101001 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-06-10 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Depends on| |100934 --- Comment #1 from Richard Biener --- We end up with [count: 0]: b.1_18 =3D{v} b; b.1_5 =3D{v} b; ... b.1_1 =3D{v} b; __builtin_unreachable (); } sounds related to PR100934, "fixed" with -fdisable-tree-cunroll. Loop 1 iterates at most 15 times. Loop 1 likely iterates at most 15 times. -fdisable-tree-thread2 "fixes" it as well. Likely a duplicate. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100934 [Bug 100934] [9/10/11/12 Regression] wrong code at -O3 during unrolling sin= ce r9-6299=