From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6B88E3858D33; Thu, 19 Oct 2023 02:26:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6B88E3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697682416; bh=9bedVZLmEhZ/+NjYX11su0mb6OUgydwEXRtMwEGvKI0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dRqL1rpB/Hf+fgrdjgHu+gMiZTnpqiWHrMgMpkI8aSR4EbjPjORaFLGjSf77Elwz1 cZujqdyEgP0/hWR9EYZEtGD+vMRNzgc8dQI/5as9IPVg2qBbL3adFh/BBgM/xY1s4I vQ8+7LSRSgNI9j4zYxan5PIT38HgbyhXKsCK8zdg= From: "juzhe.zhong at rivai dot ai" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111791] RISC-V: Strange loop vectorizaion on popcount function Date: Thu, 19 Oct 2023 02:26:55 +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: juzhe.zhong at rivai dot ai 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=3D111791 --- Comment #7 from JuzheZhong --- I don't think this is popcount vectorization issue. This code should not be vectorized. It's true this code won' be vectorized = if we use default COST model. So this is not an issue.=