From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5BEAB3858438; Tue, 27 Sep 2022 15:54:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5BEAB3858438 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664294043; bh=ElQWSmLsehcPFawUKbsUUHKT0mHWQzIqrF4QXYN7UAQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KTRu4uSJhUzj34gYGDBJVToWidkCvnqm/nQaIexs24ABbu1PPHkp6rWcZJ1WozNX5 quxP3s0nf/cdvwhc2MQ2HqbfsXv0HGpdg3BC1HJhHv5nENPXBpaRgNq8tS3UGYHRnt BbzaKy56LML8BbOg8XxJ0izVbJNBzTqduxqrI8Ts= From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107052] Range of __builtin_popcount can be improved with nonzerobits Date: Tue, 27 Sep 2022 15:54:01 +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: 12.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: aldyh 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=3D107052 --- Comment #4 from Aldy Hernandez --- (In reply to Andrew Pinski from comment #3) > (In reply to Aldy Hernandez from comment #2) > > Don't you mean the only values for popcount are 0-2? I mean, there are= only > > two bits that could be 1 with a mask of 0x300. Or am I missing somethi= ng? >=20 > Yes, 0-2 I am still trying to wake up. No worries, just trying to make sure I understand things correctly.=