From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 618C03858C66; Sun, 6 Aug 2023 17:12:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 618C03858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691341923; bh=7LV0r7+dZxa1UgMlXIX1eb0AKMBzjLvNH8j4IOptFoI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=stc7IU6Lz0gd3m9U42GmzSZINpGQrV5j4cqq/hDoJK8osnEogobqi9gWxIt7kdggU NxtcD0e64UNkKHf3Svz16+KMd5THrd+eaVeCcf3K7HPwbn6DOPRPclypUjdWtKBE2s +/LTsiCE6SJIm8go8ELwCjxMKcdBJZXkE5ABD8n4= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110919] [14 Regression] Dead Code Elimination Regression at -O3 since r14-1691-gbc5a2c2e793 Date: Sun, 06 Aug 2023 17:12:03 +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: cf_reconfirmed_on bug_status everconfirmed 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=3D110919 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-08-06 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski --- Confirmed. Note I think what EVRP produces for some thing makes it harder to optimize = too. EVRP does: Folding statement: _23 =3D _4 !=3D 1; Folded into: _23 =3D (_Bool) _3; And at the end we get: _19 =3D _6 =3D=3D iftmp.1_8; _3 =3D iftmp.1_8 ^ 1; _21 =3D (_Bool) _3; _23 =3D _6 !=3D 0; _10 =3D _19 & _23; _5 =3D _10 & _21; Which is basically: (a =3D=3D b) & (a =3D=3D 0) & (b !=3D 0)=