From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D23A93858402; Thu, 24 Feb 2022 12:48:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D23A93858402 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/104676] New: [12 Regression] ICE in verify_loop_structure, at cfgloop.cc:1748 (error: loop 3's number of iterations '(unsigned int) + 4294967295' references the released SSA name '') Date: Thu, 24 Feb 2022 12:48:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-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: Thu, 24 Feb 2022 12:48:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104676 Bug ID: 104676 Summary: [12 Regression] ICE in verify_loop_structure, at cfgloop.cc:1748 (error: loop 3's number of iterations '(unsigned int) + 4294967295' references the released SSA name '') Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gcc 12.0.1 20220220 snapshot (g:e49508ac6b36adb8a2056c5a1fb6e0178de2439d) I= CEs when compiling the following testcase w/ -O1 -ftree-loop-distribution -ftree-parallelize-loops=3D2: struct S { int f; }; int n; int foo (struct S *s) { int arr[3]; int v =3D 0; for (n =3D 0; n < 2; ++n) { int i; for (i =3D 0; i < 2; ++i) { int j; for (j =3D 0; j < s->f; ++j) ++v; } if (v) arr[0] =3D 0; arr[n + 1] =3D 0; } return arr[0]; } % gcc-12.0.1 -O1 -ftree-loop-distribution -ftree-parallelize-loops=3D2 -c opcatmkb.c opcatmkb.c: In function 'foo': opcatmkb.c:8:1: error: loop 3's number of iterations '(unsigned int) + 4294967295' references the released SSA name '' 8 | foo (struct S *s) | ^~~ during GIMPLE pass: ldist opcatmkb.c:8:1: internal compiler error: in verify_loop_structure, at cfgloop.cc:1748 0x68eb89 verify_loop_structure() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220220/work/gcc-12-20220220/gcc/cf= gloop.cc:1748 0xf752ee checking_verify_loop_structure =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220220/work/gcc-12-20220220/gcc/cf= gloop.h:646 0xf752ee loop_distribution::execute(function*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220220/work/gcc-12-20220220/gcc/tr= ee-loop-distribution.cc:3861 0xf7551b execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220220/work/gcc-12-20220220/gcc/tr= ee-loop-distribution.cc:3905=