From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 063043858D20; Mon, 1 Apr 2024 16:43:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 063043858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711989795; bh=s51aNGpLgfMh0C1abF9PBgumLBCQ7TS1AoMFElf1QpY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Ne4WkkaMNYKa1Zg+fYVhiC3+Fv+FuN3K4hRODwLjlDwwFePxmGDjaXVl551NT+M+L OpJ2E8RQceCCZTQTcXUdb4oDQLshBdaZ9DQRRqHUVk/Awnzc8N1dvFdesUpcHx8t5d /AVECHuAJvkCC51oDHII3dErhx2n5JXPqv+UD+fQ= From: "goon.pri.low at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/114547] comparison than less than 0 (or greater or equal to than 0) after a subtraction does not use the flags regster Date: Mon, 01 Apr 2024 16:43:14 +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: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: goon.pri.low at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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=3D114547 --- Comment #2 from gooncreeper --- (In reply to Andrew Pinski from comment #1) > I am not sure this is always better ... sets and setns are 1 uop, just like any other setcc why wouldn't it be better?=