[llvm] [VPlan] Add support for VPWidenIntOrFpInductionRecipe in predicated D… (PR #115274)

Shih-Po Hung via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 19:46:00 PST 2024


================
@@ -156,7 +156,8 @@ bool VPlanVerifier::verifyEVLRecipe(const VPInstruction &EVL) const {
              .Case<VPScalarCastRecipe>(
                  [&](const VPScalarCastRecipe *S) { return true; })
              .Case<VPInstruction>([&](const VPInstruction *I) {
-               if (I->getOpcode() != Instruction::Add) {
+               if ((I->getOpcode() != Instruction::Add) &&
+                   (I->getOpcode() != Instruction::Mul)) {
                  errs()
                      << "EVL is used as an operand in non-VPInstruction::Add\n";
----------------
arcbbb wrote:

The step increment `mul(step, evl)` is added to the plan, so we need to relax the constraint.

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


More information about the llvm-commits mailing list