From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6D1B63858C52; Sat, 20 May 2023 17:07:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D1B63858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684602479; bh=uPtRcOCdl1fLaSDqdVj4crCDee42ad9EYHpuRVEZhdo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rJGyF5s8wSIuHI6zlFK0nUQr+D5lbcZfA3e/5hT565IWAf46H1dF2dSdz8zeNijR4 g23FHHX4dLaFGTEd+3+qQ6q47eyd/k/1aF/KiW/zkcXMJ3nwdyOJclQoBPeieGaxKr AM06rneWPO+KANK9HqTeqLdvIgqO89csVWNUGuX8= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/101807] bool0 < bool1 Should expand as !bool0 &bool1 and bool0 <= bool1 as !bool0 | bool1 Date: Sat, 20 May 2023 17:07:58 +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: 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: attachments.created 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=3D101807 --- Comment #5 from Andrew Pinski --- Created attachment 55128 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55128&action=3Dedit Patch which I am testing This one includes the cost model here. Did a quick test on mips to see it produces the set compare instruction sti= ll.=