From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2ACFA3858D20; Sat, 20 May 2023 23:31:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2ACFA3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684625514; bh=FfsYYXFjRHkYdkT25iQ5yZPgfKcJHPDYAchvw6U4c3A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QCVT96b0mrKxhSDuVkppcabCP/tSkI2vzWFQMUaNG+fxYBn/wIvA3adiUyPg10kxV TajALlvOdoBbWB30wfFsj6z9wA5ePAt1dk74zBEP9Kf5g6SlVusN5X4nb9ItIQd8Ju CVSAUixy3uPaLeQMIfip6qEGPN7b0K9WbFHi1Y00= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/108847] unnecessary bitwise AND on boolean types and shifting of the "sign" bit Date: Sat, 20 May 2023 23:31:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement 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: --- 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=3D108847 --- Comment #3 from Andrew Pinski --- So looking into this a little futher. The problem is VRP turns !=3D0 into (bool) and then expand comes along and decides that a cast to bool needs &1 because well it just. I am going to lo= ok into see if I can remove the &1 there ...=