[llvm] [VPlan] Materialize VF and VFxUF using VPInstructions. (PR #152879)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 11 03:54:40 PDT 2025
================
@@ -3340,6 +3340,33 @@ void VPlanTransforms::materializeVectorTripCount(VPlan &Plan,
VectorTC.replaceAllUsesWith(Res);
}
+void VPlanTransforms::materializeVFAndVFxUF(VPlan &Plan, VPBasicBlock *VectorPH,
+ ElementCount VFEC) {
+ VPBuilder Builder(VectorPH, VectorPH->begin());
+ auto *TCTy = VPTypeAnalysis(Plan).inferScalarType(Plan.getTripCount());
----------------
lukel97 wrote:
Nit, for simple types do we not usually explicitly write them instead of auto?
https://github.com/llvm/llvm-project/pull/152879
More information about the llvm-commits
mailing list