From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0747B384641C; Thu, 25 Apr 2024 06:14:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0747B384641C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714025693; bh=cQA98ZlR69TMuVvTXYGugnjRznpkINdR681bp95krqE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oo2gMHPXywX3+cbcr0L0p6v7X1QaMKFijMuV+xBMC9zx0YP64DT+akZiS9HA6xD8v zt+eK2pJInulFqZkYo4LZARFcJiVuy29QMEnnrF5JF5lgFhBfp2ixcJJVAPGTMPw0H gny7vBZvwBw48RRPlw8NC7irBMUly7evT0sTV0NE= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114792] [14 Regression] ICE on valid code at -O1 with "-fno-tree-ccp -fno-tree-copy-prop" on x86_64-linux-gnu: in get_loop_body, at cfgloop.cc:903 Date: Thu, 25 Apr 2024 06:14:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114792 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #58024|0 |1 is obsolete| | --- Comment #6 from Richard Biener --- Created attachment 58033 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58033&action=3Dedit patch I'm now testing this which is more minimal surgery at least making sure we process loops in similar order as unrolling does. I'm not 100% convinced t= his is enough but it restores part of the consistency (unroll also doesn't unlo= op an outer loop before cleaning up the CFG and rebuilding loops after unloopi= ng an inner loop).=