[VPlan] Assert instead of check if VF is vector when widening casts.
authorFlorian Hahn <flo@fhahn.com>
Fri, 5 May 2023 08:02:32 +0000 (09:02 +0100)
committerFlorian Hahn <flo@fhahn.com>
Fri, 5 May 2023 08:02:33 +0000 (09:02 +0100)
commit29712ccda62012e615b8c55bc6a3fa7454c10c42
treea99fd9428a85b77e45fe87df35d17fcee96edba8
parent62d7d94c2ea4f04d9c6f3feaa525ac4971fef815
[VPlan] Assert instead of check if VF is vector when widening casts.

VPWidenRecipes should not be generated for scalar VFs. Replace check
with an assert. Suggested in preparation for D149081.
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp