[VPlan] Verify that header only contains header phi recipes.
authorFlorian Hahn <flo@fhahn.com>
Sat, 27 Aug 2022 21:06:11 +0000 (22:06 +0100)
committerFlorian Hahn <flo@fhahn.com>
Sat, 27 Aug 2022 21:06:12 +0000 (22:06 +0100)
commit7743badafa68ea15f5762fd9c20321fca564f1aa
tree3684526d42772b78d1d8865e38930202e7b74f4e
parentf051c1ded40970169cda84b0966331ae7ad424ed
[VPlan] Verify that header only contains header phi recipes.

Add verification that VPHeaderPHIRecipes are only in header VPBBs. Also
adds missing checks for VPPointerInductionRecipe to
VPHeaderPHIRecipe::classof.

Split off from D119661.

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D131989
llvm/lib/Transforms/Vectorize/VPlan.h
llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp