From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 294D53858C3A; Wed, 20 Oct 2021 03:03:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 294D53858C3A From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/102850] New: [10/11/12 Regression] ICE in begin_move_insn, at sched-ebb.c:196 Date: Wed, 20 Oct 2021 03:03:54 +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 cf_gcctarget 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: Wed, 20 Oct 2021 03:03:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102850 Bug ID: 102850 Summary: [10/11/12 Regression] ICE in begin_move_insn, at sched-ebb.c:196 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: --- Target: x86_64-pc-linux-gnu, aarch64-linux-gnu Probably a duplicate of PR91161. gcc-12.0.0-alpha20211017 snapshot (g:5d4d64faa71a6389bfb76bfb3334b63360cf62= c0) ICEs when compiling the following testcase w/ -O2 -fsched2-use-superblocks: volatile int x; int y; int baz (void); void bar (void) { for (;;) ++y; } void foo (int a) { int z; if (a && baz ()) { z =3D x; bar (); } } % x86_64-pc-linux-gnu-gcc-12.0.0 -O2 -fsched2-use-superblocks -c sakxrhiw.c during RTL pass: sched2 sakxrhiw.c: In function 'foo': sakxrhiw.c:24:1: internal compiler error: in begin_move_insn, at sched-ebb.c:196 24 | } | ^ 0x82e8f3 begin_move_insn =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211017/work/gcc-12-20211017/gc= c/sched-ebb.c:196 0x82e8f3 begin_move_insn =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211017/work/gcc-12-20211017/gc= c/sched-ebb.c:144 0x1bc30f2 commit_schedule =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211017/work/gcc-12-20211017/gc= c/haifa-sched.c:6245 0x1bc30f2 schedule_block(basic_block_def**, void*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211017/work/gcc-12-20211017/gc= c/haifa-sched.c:7083 0x1ca13be schedule_ebb(rtx_insn*, rtx_insn*, bool) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211017/work/gcc-12-20211017/gc= c/sched-ebb.c:536 0x1ca19c9 schedule_ebbs() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211017/work/gcc-12-20211017/gc= c/sched-ebb.c:655 0xe414bc rest_of_handle_sched2 =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211017/work/gcc-12-20211017/gc= c/sched-rgn.c:3740 0xe414bc execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211017/work/gcc-12-20211017/gc= c/sched-rgn.c:3878=