From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D662B3858434; Thu, 18 May 2023 01:12:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D662B3858434 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684372374; bh=MtpUdN5KKHR3vjeiJdC1a/o0XLJXGHPgJXLTtbi34jA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bEMH7nxtPlMYI6QD+oiyrA+NerU+jofUmtPF7m78qYRUKCFk34XI0UA2p+YzgQexC w0Cw9b2n6l1muVrFr8ULb3cFzdy4hRgSQmNNn52JEROIqewALHL+RoquOnfrUiFpSR xuQqPBe+8B0ymApo8lDFFG1rqFl8uhfWu+YIEvb4= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109901] Optimization opportunity: ((((a) > (b)) - ((a) < (b))) < 0) -> ((a) < (b)) Date: Thu, 18 May 2023 01:12:54 +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: 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=3D109901 --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > (In reply to Andrew Pinski from comment #1) > > bool0 - bool1 =3D=3D 0 -> !bool0 & !bool1 -> !(bool0 | bool1) > Sorry I messed this one up: > bool0 - bool1 =3D=3D 0 -> (bool0 & bool1) | (!bool0 & !bool1) or rather just bool0 =3D=3D bool1=