From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B62F4388A00C; Thu, 2 Apr 2020 13:55:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B62F4388A00C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585835705; bh=pFSF3n9uLd6vvZML1O6ItG3OEBfY6KPzKn0V/o5dp8Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vH8/rkI4Qyyuz+fwmZNWJBFN9ioHJrMHWr+0s5UecAFlHOOHyMUDdIIiS8si/TJDL Pi7ONbOnL8Ttvzm+BCrT1dKMGGekbDPP1k8NqXkAJlTRmRcvMmeEaj2TTR/PZI8EAL AdKdqcCkWDmXXA0tqlfVkpTX6PRonBSKOS0FKso8= From: "zhroma at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/93264] [10 Regression] ICE in cfg_layout_redirect_edge_and_branch_force, at cfgrtl.c:4522 Date: Thu, 02 Apr 2020 13:55:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zhroma at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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, 02 Apr 2020 13:55:05 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D93264 --- Comment #11 from Roman Zhuykov --- (In reply to Richard Biener from comment #9) Thank you, I'm glad to see new ideas and some discussion. > On the testcase itself >=20 > diff --git a/gcc/modulo-sched.c b/gcc/modulo-sched.c > index 77254b31b42..66260fa34f1 100644 > --- a/gcc/modulo-sched.c > +++ b/gcc/modulo-sched.c > @@ -1347,8 +1347,7 @@ sms_schedule (void) > edge latch_edge; > HOST_WIDE_INT trip_count, max_trip_count; >=20=20 > - loop_optimizer_init (LOOPS_HAVE_PREHEADERS > - | LOOPS_HAVE_RECORDED_EXITS); > + loop_optimizer_init (AVOID_CFG_MODIFICATIONS); > if (number_of_loops (cfun) <=3D 1) > { > loop_optimizer_finalize (); >=20 > works. Unfortunately, this brokes the whole SMS workflow. See e.g. loop_canon_p function and a call to single_exit inside. I've actually tried only improv= ed (with all my patches) master version and only few examples, but with AVOID_CFG_MODIFICATIONS some of them bailout with "SMS loop many exits" ins= tead of succesfully passing analysis and transformation phases with "SMS succeed= ed".=