From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AF1F23858409; Mon, 4 Mar 2024 22:55:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF1F23858409 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709592923; bh=+9bM24Pdv3Zzdq/5c8OzymnTC7+qcFoCieDDFd1Fz0w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=o4q0pdZSqgxqHosYejw7RKkJ1Yc3T0P3g+SHR35lGybRhq7iLH+o9n0wenKifhLEf DgkLDl7SPCuVh/ndzF+F9PLM4kmaAE57mpsVWhhcdy3bBnN1fNPOrvDGZKceWggura tHLMMTnNBaQ6MBSARnM4X40nZMn9lk6bdeH9zDJo= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/90693] Missing popcount simplifications Date: Mon, 04 Mar 2024 22:55:23 +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: 10.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 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=3D90693 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|wilco at gcc dot gnu.org |pinskia at gcc dot = gnu.org --- Comment #14 from Andrew Pinski --- > __builtin_popcount (x) =3D=3D 1 into x =3D=3D (x & -x) Actually that should be `__builtin_popcount (x) <=3D 1` Anyways I am going to implement the rest here due to PR 94787 .=