[llvm] 6338bde - [VPlan] Use cast<VPRecipeBase> in verifier (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 28 13:01:43 PST 2025
Author: Florian Hahn
Date: 2025-01-28T21:01:02Z
New Revision: 6338bde5681cada2181febb4bf64feb51207995e
URL: https://github.com/llvm/llvm-project/commit/6338bde5681cada2181febb4bf64feb51207995e
DIFF: https://github.com/llvm/llvm-project/commit/6338bde5681cada2181febb4bf64feb51207995e.diff
LOG: [VPlan] Use cast<VPRecipeBase> in verifier (NFC).
All users of VPValue must be a VPRecipeBase, use cast.
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp b/llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp
index a30bc82cbde856..0f151c897d938e 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp
@@ -206,7 +206,7 @@ bool VPlanVerifier::verifyVPBasicBlock(const VPBasicBlock *VPBB) {
}
for (const VPUser *U : V->users()) {
- auto *UI = dyn_cast<VPRecipeBase>(U);
+ auto *UI = cast<VPRecipeBase>(U);
// TODO: check dominance of incoming values for phis properly.
if (!UI ||
isa<VPHeaderPHIRecipe, VPWidenPHIRecipe, VPPredInstPHIRecipe>(UI))
More information about the llvm-commits
mailing list