From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 83CB33857C66; Thu, 6 Jul 2023 22:03:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 83CB33857C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688680990; bh=EJNdCQ8gifobodJSzyr7jmXap3dYj4kOpOkkQB7MAXc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iUTgb/4l+Em5b9HCiqc980zIPT1EZdJr77X3dNrSSRv546AgMXfHyrnoWGgf+SPV0 +Y9sNg8aoB+JAtu3wBWq5PidkAIHobOOgB9RkxmzLMhdPfieeXTfZZH5/EUx3Fp2VW iHdvOMdWJS63uPWKPeV3tUPqTHrUJryyVlV3M81c= 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 22:03:10 +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: 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 --- Comment #4 from Andrew Pinski --- yes adding: /* (convert)(zeroone !=3D 0) into (convert)zeroone */ /* (convert)(zeroone =3D=3D 0) into ((convert)zeroone)^1 */ (for neeq (ne eq) (simplify (convert (neeq zero_one_valued_p@0 integer_zerop)) (if (neeq =3D=3D NE_EXPR) (convert @0) (bit_xor (convert @0) { build_one_cst (type); } )))) Fixes the original testcase.=