From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6C5CA3858D28; Tue, 22 Aug 2023 16:53:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C5CA3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692723220; bh=MkB4ozDdYNfClR6Z+RLQwsmfMo+3bwAz1OArRO1fZUM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=R3YjtO4eGDkY9AblTcyvG+zNehlblI5vTsH4YodZLenDurW41YLeW3oenNnPnnMKT E5bM6cQDtPbE8LUXUmynzUxBtNDA8VADwlFEwuJBb2uHo86lhYeJAn8qfXxJofOt5M HwFdorur08D9586TL3pxr0XSB8+iaV+j2YNJwrrM= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/95929] Failure to optimize tautological comparisons of comparisons to a single one Date: Tue, 22 Aug 2023 16:53:40 +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: 11.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: assigned_to bug_status 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=3D95929 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot = gnu.org Status|NEW |ASSIGNED --- Comment #4 from Andrew Pinski --- r14-3110-g7fb65f102851 (handling of a?~t:t -> (-(a))^t) basically fixes thi= s. The only thing left is removing of `bool =3D -bool`: In: _1 =3D a_5(D) !=3D 0; _2 =3D b_3(D) !=3D 0; _13 =3D -_2; _12 =3D _1 ^ _13;=