[llvm] [VPlan] Support VPWidenIntOrFpInductionRecipes with EVL tail folding (PR #144666)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 29 05:07:01 PDT 2025


================
@@ -165,18 +166,30 @@ bool VPlanVerifier::verifyEVLRecipe(const VPInstruction &EVL) const {
         .Case<VPInstruction>([&](const VPInstruction *I) {
           if (I->getOpcode() == Instruction::PHI)
             return VerifyEVLUse(*I, 1);
-          if (I->getOpcode() != Instruction::Add) {
-            errs() << "EVL is used as an operand in non-VPInstruction::Add\n";
+          switch (I->getOpcode()) {
----------------
fhahn wrote:

Might be worth adding a brief comment below about why this is only check depending on VerifyLate.

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


More information about the llvm-commits mailing list