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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 13 03:08:21 PST 2026


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

```suggestion
            VPI->getOperand(1) == &Plan.getVF()) {
```

I think this can be an assert now?

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


More information about the llvm-commits mailing list