[llvm] [VPlan] Add VPInstruction::StepVector and use it in VPWidenIntOrFpInductionRecipe (PR #129508)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 21 10:54:47 PDT 2025
================
@@ -1063,6 +1065,9 @@ class VPInstructionWithType : public VPInstruction {
: VPInstruction(Opcode, Operands, FMFs, DL, Name), ResultTy(ResultTy) {}
static inline bool classof(const VPRecipeBase *R) {
+ if (isa<VPInstruction>(R) &&
+ cast<VPInstruction>(R)->getOpcode() == VPInstruction::StepVector)
+ return true;
----------------
fhahn wrote:
merge with the check for WideIVStep, possibly via switch?
https://github.com/llvm/llvm-project/pull/129508
More information about the llvm-commits
mailing list