[llvm] [VPlan] Add VPInstruction::StepVector and use it in VPWidenIntOrFpInductionRecipe (PR #129508)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 28 06:12:51 PDT 2025
================
@@ -1068,7 +1070,15 @@ class VPInstructionWithType : public VPInstruction {
if (R->isScalarCast())
return true;
auto *VPI = dyn_cast<VPInstruction>(R);
- return VPI && VPI->getOpcode() == VPInstruction::WideIVStep;
+ if (!VPI)
+ return false;
+ switch (VPI->getOpcode()) {
+ case VPInstruction::WideIVStep:
----------------
david-arm wrote:
This patch isn't adding `VPInstruction::WideIVStep`. It feels like this should be done independently in a separate patch?
https://github.com/llvm/llvm-project/pull/129508
More information about the llvm-commits
mailing list