From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CA7D73858D32; Wed, 5 Apr 2023 19:47:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA7D73858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680724069; bh=UUIS9lZ79qIEjgw4FJYHkYGRdaON6zlbi/RCdM/zUlU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mh8BJRlNAe12v+WppJ9XIAhwHg1HnA86O5jYpwJexpMR/pNJ0XBT6XMiKiFbBGwQ1 j2mIbmWTZJSgZHQXuKsOtgSl4iQDz9QxOgX937UwOzO7CV/YNF+uYp695cJRqswB+A /8N4uZajcbhhShEeET7B6p2vqadWBFB3W7AIGj8k= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109424] ~((x > y) ? x : y) produces two not instructions Date: Wed, 05 Apr 2023 19:47:49 +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: UNCONFIRMED 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: short_desc 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=3D109424 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|~ |~((x > y) ? x : y) produces | |two not instructions --- Comment #1 from Andrew Pinski --- > You would assume GCC produce the same code for both, but nope, the first = f is worse. Sorry f1 is worse.=