From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E843B3858D32; Wed, 27 Dec 2023 14:52:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E843B3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703688764; bh=RZh/p1a5O1kf/yGiDAeoYUfJU4Q3rQ3vrZpqhlD9Vs4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZBDWSRUtXkBKFLq0Qsi3GjOKbmeti1DLN+N8NL4EBFGKLo+QwWzJUtw46ML5aAonn uzfIHFXr7ZcWxywCGDsrRlNw5WwzeMY94rC562/ORqGD7+rRbOhq0RQJopqhe/3J6G pghyNSJmnlo5exsNyUT6eHuT4Gkd7zIfjx8v8F2Q= From: "tnfchris at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113136] [14 regression] ICE when building Perl Date: Wed, 27 Dec 2023 14:52:42 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: tnfchris at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: tnfchris at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113136 --- Comment #8 from Tamar Christina --- Thanks, was able to reproduce with `--enable-checking=3Dyes,rtl,extra`. The issue seems to be that the value is unused, and we were relying on DSE removing such statement. but with --enable-checking=3Dyes,rtl,extra the ext= ra verification is done before we can remove the dead statements on these inve= rted loops. That's why it doesn't fail without and produces the right code. So it looks like this is the same bug as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113137 and the fix for that = should fix this. It looks like for these inverted loops, even though none of the values are used, I have to maintain the virtual phis. I'll keep the two separate for now..=