From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3B4D03858296; Sat, 26 Nov 2022 20:26:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B4D03858296 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669494391; bh=aT/WbdVXM0oVAYVqEXMJC7MZwXqTBJaSh0PszgEWqNg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=voQHGWKVnC4hwryaPi08AWAAnB0wlK0al7qq/bwBIKltF0Mc/uLnkKeE99a2HJzdj NYb9GsyIVLP3vQAmnPktTPlFoSM/V/XXLeicwxor5raebczDTKZtmvPBnBo99I4zOI Xl1ckPVmwZ2/ylq9HOpSfQ7BPe0mpeCyAYApoMR4= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107881] (a <= b) == (b >= a) should be optimized to (a == b) Date: Sat, 26 Nov 2022 20:26:30 +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: 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: attachments.isobsolete 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=3D107881 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #53970|0 |1 is obsolete| | --- Comment #5 from Andrew Pinski --- Created attachment 53971 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53971&action=3Dedit Slightly better xor patch Here is a slightly better xor one. It moves most of the stuff to gimple-fol= d.cc really and is able to handle CSTs now.=