From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 041A83858D33; Sat, 16 Sep 2023 03:27:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 041A83858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694834827; bh=bPlz5E4G9xCbiXU7jxWGiy7JIq9NC20ZGokXmx9XYuI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jEZgo64hTWY0veGwQa5IJ4kfGt9CWu4FQLmVbQvbpG49g9Wg3GHDyEZNh7I8Z3IT+ 0grpZ2Ua7B4/EpKKMmj6XdZT9xKw4Z42aKlsyTu/XK27VbgTSkkAsVRY61GT4TIdsr G/pMtVQd/cimSD932exHidmQDcAO3SJK6yzKE9EA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111431] a & (a == 0) is not optimized to 0 Date: Sat, 16 Sep 2023 03:27:06 +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: 14.0 X-Bugzilla-Keywords: missed-optimization, xfail X-Bugzilla-Severity: normal 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: 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=3D111431 --- Comment #3 from Andrew Pinski --- Note this is an extension of the pattern: /* X & !X -> 0. */ (simplify (bit_and:c @0 (logical_inverted_value @0)) Which was moved to match via r5-4683-g5609420fbab5ca .=