From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 08F14384C003; Tue, 13 Sep 2022 09:40:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 08F14384C003 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663062008; bh=eOAhCsaOgpY7YpS9Z0BugQxVRjW35pa/pUliIpJAwJk=; h=From:To:Subject:Date:From; b=NyI2TNaTKupTDNVmVmwK9vfV/NBJy06qevwafuv3ZNqm8DR4Jgh73ZjnJp1iFeRhi Z5XjwtWQb4TAGBfefV++ag/ObzuF5LHSSKz6Q1OUAK80pG9+zRtDq7Xram36R49VoX naBknaViOi5vHdDOlmxiLmlZC+/U41tTbAo9qbQw= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106923] New: [13 Regression] ICE in eliminate_unnecessary_stmts, at tree-ssa-dce.cc:1512 Date: Tue, 13 Sep 2022 09:40:07 +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: 13.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106923 Bug ID: 106923 Summary: [13 Regression] ICE in eliminate_unnecessary_stmts, at tree-ssa-dce.cc:1512 Product: gcc Version: 13.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 13.0.0 20220911 snapshot (g:0ea5e3f4542832b8da016b152695e64a2a386309) I= CEs when compiling the following testcase w/ -O1 -finline-small-functions -fpartial-inlining --param max-inline-insns-single=3D1 --param uninlined-function-insns=3D10000: int n; int baz (void); __attribute__ ((returns_twice)) int bar (void) { if (baz ()) ++n; return 0; } int foo (void) { return bar (); } % gcc-13.0.0 -O1 -finline-small-functions -fpartial-inlining --param max-inline-insns-single=3D1 --param uninlined-function-insns=3D10000 -c xe0= blvxx.c during GIMPLE pass: dce xe0blvxx.c: In function 'bar': xe0blvxx.c:7:1: internal compiler error: in eliminate_unnecessary_stmts, at tree-ssa-dce.cc:1512 7 | bar (void) | ^~~ 0x771cd5 eliminate_unnecessary_stmts =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/tr= ee-ssa-dce.cc:1512 0x771cd5 perform_tree_ssa_dce =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/tr= ee-ssa-dce.cc:1945=