From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B50803858C5F; Thu, 18 May 2023 04:12:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B50803858C5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684383130; bh=3+IZha951TYUsE/HduEHW1XZjAx2hkrQWx4kX+m3nkU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SUtK9iJOogdVtfbyGZ1Xh5hrceNZIFFVcrePb3xDI79BfvvYS9tt2nFlBg0eWU3Ll aubh7PHd8Fcel2pflIQezhwDX02vDJ9S9l74tjqQg1BNatyBEJuE7Uq24D3LEC931n d9hnmgbfJFXolG1ICLPS7JbBFejqcst3nxBur5oE= From: "richard.yao at alumni dot stonybrook.edu" 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 04:12:10 +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: richard.yao at alumni dot stonybrook.edu 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 #7 from Richard Yao = --- Two more rules: bool0 - bool1 >=3D 0 -> bool0 | !bool1 -> bool1 >=3D bool0 bool0 - bool1 <=3D 0 -> !bool0 | bool1 -> bool0 <=3D bool1=