From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 40646385DC19; Thu, 9 Nov 2023 03:04:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 40646385DC19 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699499059; bh=NpddToEs/Hd0ajFiKNuAMVhWbyzZeAps4hjmYLCm4RI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Pm3/6HhA2YpTOCbydPSuaYGitdEXNtSGsoI6CLW+GnMpi+iMV1dSYLWsZ575Q5XbE 1mMpAzR876yukgZnNWiBwfzHTTroZ4Hf7m9NOWlzwUckdmerzopOGJRNZJwv8bSBG6 rEinnLAIrkCcsih9BoH9dm9NUwLQnlOvxdPJJlqw= From: "juzhe.zhong at rivai dot ai" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/112450] RVV vectorization ICE in vect_get_loop_mask, at tree-vect-loop.cc:11037 Date: Thu, 09 Nov 2023 03:04:18 +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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: juzhe.zhong at rivai dot ai X-Bugzilla-Status: UNCONFIRMED 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=3D112450 --- Comment #1 from JuzheZhong --- Oh. I see we have cond_xxx pattern for VLS modes. like V64HImdoe. But we don't support partial vectorization for VLS modes. VLS modes are supposed to used as SIMD GNU vectorization. As long as COND_XXX is enabled, loop vectorizer considers target support partial vectorization with mask and since no while_ult, then go through AVX512 part= ial vectorization. It seems that for conditional operations, I should use backend RTL PASS to = walk around that.=