[llvm] [VPlan] Support VPWidenIntOrFpInductionRecipes with EVL tail folding (PR #144666)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 20 10:42:26 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()) {
----------------
preames wrote:
What purpose does this switch serve? It seems to be the same functionally as the prior if-clause?
https://github.com/llvm/llvm-project/pull/144666
More information about the llvm-commits
mailing list