From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 753053858C50; Mon, 2 May 2022 16:29:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 753053858C50 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/105455] New: ICE: verify_flow_info failed (error: verify_flow_info: REG_BR_PROB does not match cfg) Date: Mon, 02 May 2022 16:29:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: 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, 02 May 2022 16:29:30 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105455 Bug ID: 105455 Summary: ICE: verify_flow_info failed (error: verify_flow_info: REG_BR_PROB does not match cfg) Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gcc 12.0.1 20220424 snapshot (g:6b7441a46c771aa6ecdc0c8ed96197417d036b9a) I= CEs when compiling the following testcase w/ -O1 -fharden-conditional-branches -funroll-loops --param max-loop-header-insns=3D1: __attribute__ ((cold)) void bar (void); void foo (int x) { if (x) { int i; for (i =3D 0; i < 101; ++i) bar (); } } % gcc-12.0.1 -O1 -fharden-conditional-branches -funroll-loops --param max-loop-header-insns=3D1 -c hkihrvjs.c hkihrvjs.c: In function 'foo': hkihrvjs.c:14:1: error: verify_flow_info: REG_BR_PROB does not match cfg 1073741831 7 14 | } | ^ during RTL pass: loop2_unroll hkihrvjs.c:14:1: internal compiler error: verify_flow_info failed 0x9df59e verify_flow_info() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220424/work/gcc-12-20220424/gcc/cf= ghooks.cc:284 0xde0a8a execute_function_todo =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220424/work/gcc-12-20220424/gcc/pa= sses.cc:2097 0xde0f9e execute_todo =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220424/work/gcc-12-20220424/gcc/pa= sses.cc:2139=