[llvm] [LV] Trim VFs that cause vector splitting when tail-folding with EVL (PR #222836)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 10 22:53:05 PDT 2026
================
@@ -653,3 +676,35 @@ void VPlanTransforms::convertEVLExitCond(VPlan &Plan) {
LatchBr->setOperand(
0, Builder.createICmp(CmpInst::ICMP_EQ, AVLNext, Plan.getZero(AVLTy)));
}
+
+void VPlanTransforms::trimVFsCausingSplits(VPlan &Plan,
+ VPCostContext &CostCtx) {
+ if (!Plan.hasScalableVF())
+ return;
+
+ // Get the widest type in the vector region.
+ unsigned WidestType = 8;
----------------
artagnon wrote:
Is this Plan.getIndexType() / CHAR_BIT?
https://github.com/llvm/llvm-project/pull/222836
More information about the llvm-commits
mailing list