From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8BFDB385C6D4; Thu, 6 Jul 2023 21:20:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8BFDB385C6D4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688678459; bh=4ZImx1dOgpPW/APiZa+2vkwMjWEF7ynXWDR4evrmz6g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jccpd+GZqM6dNFYRn76AqodFPWsO7TR7Hg2KyzPSa3V2xf0E0LtQpKTRJsR//mens m5bdyc/PY95vB41mv7FwZCLB8pXH+6uxH/3fgrcl41TTRJwwE/xVApeI5cQY4PaXmh Bd5c2TM2b5ymyFfzgc8FF4D+W5ZQxvxYhimo61Ms= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110539] [14 Regression] Dead Code Elimination Regression at since r14-338-g1dd154f6407 Date: Thu, 06 Jul 2023 21:20:59 +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: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pinskia at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status everconfirmed assigned_to cf_reconfirmed_on 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=3D110539 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot = gnu.org Last reconfirmed| |2023-07-06 --- Comment #1 from Andrew Pinski --- # RANGE [irange] int [0, 1] NONZERO 0x1 i_7 =3D a.0_1 & 1; _17 =3D i_7 !=3D 0; _12 =3D (int) _17; if (i_7 =3D=3D _12) So this should have been optimized to _17 =3D (bool) i_7; and then if (1) Maybe it is an order of the stuff in match.pd ...=