From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7E9BF385771B; Wed, 12 Jul 2023 08:06:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E9BF385771B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689149175; bh=VnYIpqEBddxAJ8R99f3lH0eKmFkUFxGhbIKFrFweYHw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TiDsJ4MJcC6rKwul6XFbCV6/g1Y4vSJ2ITcyj63M9gm4LaNSn68agGmEWy1TRdgtV xh5F0BKA6hT2nEmbw55RuhwVjCi3bDIy1fq2iqp0Zm2rIztJKDWeAV+5y6mvY1TW7f CIo4fvT6noWwKEL79IM61Y6OmvVN+WoKZFUTp8/w= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110637] (type)(zeroonep !=/== 0) should be optimized as (type)zeroonep/zeroonep^1 earlier than vrp Date: Wed, 12 Jul 2023 08:06:15 +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 X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenth 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: 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=3D110637 --- Comment #2 from Richard Biener --- Maybe zero_one_valued_p needs a (match zero_one_valued_p (bit_and @0 integer_onep)) ? (hopefully for signed 1-bit precision that doesn't match)=