[llvm] [VPlan] Verify plan before optimizations. NFC (PR #122678)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 13 02:18:54 PST 2025
================
@@ -8837,6 +8837,8 @@ void LoopVectorizationPlanner::buildVPlansWithVPRecipes(ElementCount MinVF,
for (ElementCount VF = MinVF; ElementCount::isKnownLT(VF, MaxVFTimes2);) {
VFRange SubRange = {VF, MaxVFTimes2};
if (auto Plan = tryToBuildVPlanWithVPRecipes(SubRange)) {
+ assert(verifyVPlanIsValid(*Plan) && "VPlan is invalid");
----------------
fhahn wrote:
better do this at the end of `tryToBuildVPlanWithVPRecipes`?
https://github.com/llvm/llvm-project/pull/122678
More information about the llvm-commits
mailing list