From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 57CE43858D37; Fri, 23 Jun 2023 00:50:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 57CE43858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687481435; bh=cYmMWouWsFSRvNUzZ5CXYy1lOhmnC+QcLjYQAAgnaIM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=H7hqNQaLtWX3OSA7YiLie1FkEVxiWs6am+A8+DvWnEmiQYYi1ibRkkpaVpl5rX0ii QkjIZ3Cgtis+NlyT48ceEWXL6PDNV8+EIN9u7lAjD8az5nDm7VME0gP3NO/BHuxGCz H3jy/0MiWQj7cd6Ts2xyQDqUNr9rFn6ZOWlnH0Ew= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/101703] (bool0 + bool1) & 1 and (bool0 + bool1) == 1 can be optimized to bool0 ^ bool1 Date: Fri, 23 Jun 2023 00:50:35 +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: 12.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: everconfirmed cf_reconfirmed_on bug_status assigned_to 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=3D101703 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2023-06-23 Status|UNCONFIRMED |ASSIGNED Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot = gnu.org --- Comment #1 from Andrew Pinski --- For most see PR 104292 but we need one more: (simplify (bit_and (plus zero_one_valued_p@0 zero_one_valued_p@1) integer_onep) (bit_xor @0 @1)))=