[llvm] [VPlan] Introduce VPInstructionWithType, use instead of VPScalarCast(NFC) (PR #129706)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 9 14:50:08 PDT 2025
================
@@ -147,8 +147,8 @@ bool VPlanVerifier::verifyEVLRecipe(const VPInstruction &EVL) const {
[&](const VPRecipeBase *S) { return VerifyEVLUse(*S, 2); })
.Case<VPWidenLoadEVLRecipe, VPVectorEndPointerRecipe>(
[&](const VPRecipeBase *R) { return VerifyEVLUse(*R, 1); })
- .Case<VPScalarCastRecipe>(
- [&](const VPScalarCastRecipe *S) { return VerifyEVLUse(*S, 0); })
+ .Case<VPInstructionWithType>(
+ [&](const auto *S) { return VerifyEVLUse(*S, 0); })
----------------
ayalz wrote:
```suggestion
[&](const VPRecipeBase *S) { return VerifyEVLUse(*S, 0); })
```
consistency?
https://github.com/llvm/llvm-project/pull/129706
More information about the llvm-commits
mailing list