From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 72A3F386102D; Wed, 27 Jan 2021 04:33:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 72A3F386102D From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/98845] New: [8/9/10 Regression] ICE: SSA corruption (Unable to coalesce ssa_names 2 and 23 which are marked as MUST COALESCE.) Date: Wed, 27 Jan 2021 04:33:02 +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: 11.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: Wed, 27 Jan 2021 04:33:02 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98845 Bug ID: 98845 Summary: [8/9/10 Regression] ICE: SSA corruption (Unable to coalesce ssa_names 2 and 23 which are marked as MUST COALESCE.) Product: gcc Version: 11.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-11.0.0-alpha20210124 snapshot (g:6b1633378b74bed1d999a0ae2549088515a30b= a0) ICEs when compiling the following testcase w/ -Os -fno-tree-dce: int __attribute__ ((returns_twice)) func_58 (int); int func_215 (int func_215___trans_tmp_2, int g_180, int p_217, int p_218) { if (func_215___trans_tmp_2) func_215 (0, 0, 0, 0); else if (g_180) { if (p_218) return 1; p_218 =3D p_217; } else { p_217 =3D 0; while (!p_217) { } } p_218 =3D 0; while (p_218) { func_58 (p_217); func_58 (p_217 + 1); } return 0; } % gcc-11.0.0 -Os -fno-tree-dce -c gdh96e2t.c Unable to coalesce ssa_names 2 and 23 which are marked as MUST COALESCE. p_217_2(ab) and p_217_23(D)(ab) during RTL pass: expand gdh96e2t.c: In function 'func_215': gdh96e2t.c:5:1: internal compiler error: SSA corruption 5 | func_215 (int func_215___trans_tmp_2, int g_180, int p_217, int p_2= 18) | ^~~~~~~~ 0xf1d345 fail_abnormal_edge_coalesce =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210124/work/gcc-11-20210124/gc= c/tree-ssa-coalesce.c:1003 0xf1d345 coalesce_partitions =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210124/work/gcc-11-20210124/gc= c/tree-ssa-coalesce.c:1425 0xf1d345 coalesce_ssa_name(_var_map*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210124/work/gcc-11-20210124/gc= c/tree-ssa-coalesce.c:1755 0xeb8fcc remove_ssa_form =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210124/work/gcc-11-20210124/gc= c/tree-outof-ssa.c:1065 0xeb8fcc rewrite_out_of_ssa(ssaexpand*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210124/work/gcc-11-20210124/gc= c/tree-outof-ssa.c:1323 0x961e60 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210124/work/gcc-11-20210124/gc= c/cfgexpand.c:6533=