[llvm] [VPlan] Fix LastActiveLane assertion on scalar VF (PR #167897)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 16 19:49:09 PST 2025
================
@@ -66,6 +66,17 @@ bool vputils::isHeaderMask(const VPValue *V, const VPlan &Plan) {
m_One(), m_Specific(&Plan.getVF()))) ||
IsWideCanonicalIV(A));
+ // For scalar plans, the header mask uses the scalar steps.
+ if (match(V,
+ m_ICmp(m_ScalarIVSteps(
----------------
lukel97 wrote:
Good point, I've added a helper in efca5e5a1abe71378f0864896a59ab62c2673bb7
https://github.com/llvm/llvm-project/pull/167897
More information about the llvm-commits
mailing list