From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EBBB03858C50; Sun, 24 Sep 2023 04:57:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EBBB03858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695531464; bh=XROqGMt8WeN3V0Jwgsdba3hgnQH38Nk+Ro035N0ZLBk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=u9At1KbOhKhlzo6kH4e97IFeQKOJj5kXveP+UAIPLNgqltn6KIJJAVJON3xJmXCVn RurIr8nvmM+iVLbVKBqEpGa4e2wKQYNaYlucExH+pChr2bWM9xHrOBOBe4v/hwLZcz 9LC8OIt15qbdntKOc6AaHQWuSC/f9wHV0NdZevRU= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107887] (bool0 > bool1) | bool1 is not optimized to bool0 | bool1 Date: Sun, 24 Sep 2023 04:57:44 +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: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement 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: --- 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=3D107887 --- Comment #3 from Andrew Pinski --- The bigger question on this is canonical form here, is it `a < b` or `~a & = b`. If it is `a < b` then we need the ability to match `a < b` as `~a < b` but = that might get complex with bitwise_inverted_equal_p ...=