[llvm] [LV] Pass symbolic VF to CalculateTripCountMinusVF and CanonicalIVIncrementForPart (NFC) (PR #180542)

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 11 09:55:15 PST 2026


================
@@ -467,7 +467,7 @@ void VPlanTransforms::unrollByUF(VPlan &Plan, unsigned UF) {
         auto *VPI = dyn_cast<VPInstruction>(&R);
         if (VPI &&
             VPI->getOpcode() == VPInstruction::CanonicalIVIncrementForPart &&
-            VPI->getNumOperands() == 1) {
----------------
MacDue wrote:

Right, thanks for clarifying :+1: I've updated this so we create `VFxPart` in `unrollRecipeByUF()`. This does require adjusting some matching (which seems a little brittle), but it seems like it all works out for the tests (aside from a little churn). 

https://github.com/llvm/llvm-project/pull/180542


More information about the llvm-commits mailing list