From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5C3AD3858C5E; Tue, 23 Jan 2024 08:03:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C3AD3858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705997029; bh=OXyFpud8PSKGooKv7zs7xJHasiJ6JHheuW0ucbWGhTE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=t1aQzkllxoOMQBTbJS7oF8sCE1j78V5Un5SGooVMf2FCvDOmiW6SQdnxc5I57/pd8 boOiGmW/iIVlF2jnF9ejj990wscUwZetl+5r0/gDHX61pL0Tnu6Ga1yOIMZc5rM/Sx f9wATLVXzCopQkeOK4EvotFMVmfUbVPEf5j4e0BU= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113551] [13 Regression] Miscompilation with -O1 -funswitch-loops -fno-strict-overflow Date: Tue, 23 Jan 2024 08:03:49 +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: 13.2.0 X-Bugzilla-Keywords: needs-bisection, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to bug_status priority cf_known_to_work short_desc cc 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=3D113551 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|rguenth at gcc dot gnu.org |unassigned at gcc d= ot gnu.org Status|ASSIGNED |NEW Priority|P3 |P2 Known to work| |14.0 Summary|[13/14 Regression] |[13 Regression] |Miscompilation with -O1 |Miscompilation with -O1 |-funswitch-loops |-funswitch-loops |-fno-strict-overflow |-fno-strict-overflow CC| |rguenth at gcc dot gnu.org --- Comment #7 from Richard Biener --- The IL after unswitching looks OK, but we assume that when &dso->i is NULL then dso =3D=3D NULL and when &dso->i is not NULL then dso also isn't. I think this is a ranger bug that has been fixed on trunk but eventually not yet backported, thus we have a duplicate somewhere. Bisection will tell.=