From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 509DD3857C41; Thu, 12 Oct 2023 20:49:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 509DD3857C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697143790; bh=ABUzjlCZ5E1cVJqy0GXLVvz1fa/IbxMyALZ7eBlLjrE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RgvfHnv7zI9kZ8Ymqz2tS3wQ6GhyLphtgVGhqK9zc9hytUQ3p/keLaIGZKj8cJX0o a0pP88Z4lUcTgPvZULSVzEE/OstYXDjMUVnBTJrG+49cyDmvzfMhBraFR33gFG6d2k OwfkZjuvSYRMEF6Y+FkCkNliYqg+LaRwO0vZefmI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111791] RISC-V: Strange loop vectorizaion on popcount function Date: Thu, 12 Oct 2023 20:49:50 +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: normal X-Bugzilla-Who: pinskia 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: cf_reconfirmed_on cc bug_status everconfirmed 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=3D111791 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-10-12 CC| |pinskia at gcc dot gnu.org Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski --- Confirmed. I almost want to say SCCP should always do this loop into _builtin_popcount= N if there are no other statements in it and then it will be removed and not be vectorized but maybe that there is another way to fix ...=