From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 033FD3858433; Mon, 7 Aug 2023 16:07:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 033FD3858433 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691424432; bh=wY4ew2ypeuV8XN7Rck4cfeAea2NwhBL9lSovqVemjkI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=heRsyGiTKhiuqkuOkhDYNKwoZnyphvxdW+VYMd4/6GJGmSa0EMw2FW7zgcsr6NSvG RAA50kV47RKM5R+pCZTBEp55JEwkDNOVrsUjCwlcKe765HJMPr36HKgTPkzX8Z37eO yCTg+juHCTJbBCeS8rYDDspEUO4kpe6LfnuDTPGc= 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 16:07:11 +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 #3 from Andrew Pinski --- Here is one that has always failed due to a similar issue where the inner c= ast was removed: ``` void foo(void); int l=3D1000; int main(void) { short t =3D l; int t1 =3D t; if (t1 =3D=3D 0) { signed char b =3D t1; if (b !=3D 1) __builtin_unreachable(); foo(); } } ```=