From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3BACE388A008; Thu, 2 Apr 2020 11:44:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3BACE388A008 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585827853; bh=O5FAwqLm6kWoJsk0Xi2EiyKbIx2X8lO783askE5ZOXY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=J39/7+q78pfE8h9/2F/GgHurOV3BmnsdTIl/YscjH803ugb8aR/+0sR0Y357nmZnx krovD2R41iyFDcusFMCHZk+IpnoKxc+FciiNre/YNc33V/5cCkFdFZku/W1ZrMsmc0 MtGHUF+2hQcewBq8o+IDZohFatn2NVTOP8Mr03qg= From: "rguenth 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 11:44:12 +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: rguenth 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 11:44:13 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D93264 --- Comment #7 from Richard Biener --- So let's try to address this in cfgloop.c - we're likely facing the situati= on of header: ... if (...) goto latch1; latch2: goto header; latch1: // in cold section goto header; where latch disambiguation via merge_latch_egdes tries to build header: ... if (...) goto latch1; latch2: goto latch3; latch1: // in cold section goto latch3; latch3: // somewhere goto header; but somehow we end up redirecting a jump that was formerly crossing to non-crossing. Looking at the backtrace it must be entry edges that are being redirected but the whole setup should be so that the crossing state of a branch is never changed. Unfortunately I can't reproduce on todays trunk, will try rewiding backwards to the reporting time to have a closer look.=