[llvm] [VPlan] Convert EVL loops to variable-length stepping after dissolution (PR #147222)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 21 03:19:40 PDT 2025


================
@@ -192,7 +192,9 @@ bool VPlanVerifier::verifyEVLRecipe(const VPInstruction &EVL) const {
             errs() << "EVL used by unexpected VPInstruction\n";
             return false;
           }
-          if (I->getNumUsers() != 1) {
+          // EVLIVIncrement is only used by EVLIV & BranchOnCount.
+          // More than two is unexpected.
+          if (I->getNumUsers() > 2) {
----------------
fhahn wrote:

This needs to verify that the other user is BranchOnCount?

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


More information about the llvm-commits mailing list