From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4D13C3858D1E; Thu, 28 Mar 2024 10:49:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D13C3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711622953; bh=BRcW0puKfnaaJ3vUYfaraVdc8XAT8Tf0gINnDzrmdZc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pW0kCRtpYfkSD8/LiappSljmGHmYzuJFI8CU0Ohv1JF1NVaBvbU9CtxIZO8rVFj0E M/qg7JtRW2DDgrnMI2u2PxuFzdoD94xuM7yA+opIWb+TfYn2FTbK+PTBZXTqrHUhci ordZzXqwQ3fc8bmTDnHWrdeGFRtZWf9Pa0AjlH5g= From: "juzhe.zhong at rivai dot ai" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114506] RISC-V: expect M8 but M4 generated with dynamic LMUL Date: Thu, 28 Mar 2024 10:49:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: missed-optimization 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: cc 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=3D114506 JuzheZhong changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |juzhe.zhong at rivai dot ai --- Comment #4 from JuzheZhong --- (In reply to Andrew Pinski from comment #2) > Using -fno-vect-cost-model forces the use of M8 though. >=20 > I have no idea how this cost model is trying to prove here. We shouldn't force M8. We have support dynamic LMUL cost model heuristically analyze the vector register pressure in SSA level. So that we could pick the optimal LMUL. This PR presents shows that RVV dynamic LMUL cost model pick LMUL 4 instead= of LMUL 8 unexpectedly. So we should adjust the dynamic LMUL cost model to fix this issue.=