From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 815193858D28; Sat, 16 Sep 2023 23:04:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 815193858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694905495; bh=UXR+yIz0fp8qow0dyJGfxw32Zmnxbj/1V+ZmVVOXwpI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=aYSKmiqpR/pcwfBBUzRc//rmJzTrmcaikFhxcHUiy6yG+a0CFcLffQObJDlRLURiU 3xRCAOUTjv8ni5kDmed6fr0mXb8yOF5rykKXj6VIOujUzBZVLjQwGbT0CBVLFavrYf EUHQ16/tWxVXlHAaTSA8wveIwxbH4yItD++aNaco= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109960] [11/12/13/14 Regression] missing combining of `(a&1) != 0 || (a&2)!=0` into `(a&3)!=0` Date: Sat, 16 Sep 2023 23:04:55 +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: 11.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=3D109960 --- Comment #8 from Andrew Pinski --- Created attachment 55913 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55913&action=3Dedit part of the ifcombine fixes It does not catch: _10 =3D _5 >> 1; _11 =3D (_Bool) _10; if (_11 !=3D 0) Though. I will add that in a bit. That is used for PR 108370.=