From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2E8063858D28; Mon, 7 Aug 2023 15:25:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E8063858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691421920; bh=/zWMjchSYfO9QynvhpfzXPUy9PGngFeSbuPS9MzSG10=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bXmM9wnUvwb43Bb2CATkpTTtkdgD1xnb6/Iq4m+tvyIopitpTshWke6Ipq/hi1W/F cIdLIR4XBtkRUDC49KwU0ix0hrJfCALgEDuygdVsC0pxsufLEKW2K7zYniw/8flBUB EBiOIOBIDHlVp0p8OGT1yu0Y96Q8MykP6meKJWyI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110931] [14 Regression] Dead Code Elimination Regression since r14-2890-gcc2003cd875 Date: Mon, 07 Aug 2023 15:25:19 +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: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned 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=3D110931 --- Comment #2 from Andrew Pinski --- Basically there is a missing VRP happening here: l.0_1 [irange] int [-INF, -65536][0, 0][65536, +INF] Partial equiv (b_6 pe8 l.0_1) : b_6 =3D (char) l.0_1; ... Obvious that b_6 will have the range [0,0] as the other parts of l.0_1 is outside of that range. But for some reason VRP didn't figure that out here = ... I don't understand how this is supposed to work=