[VPlan] Replace AlsoPack field with shouldPack() method (NFC).
authorFlorian Hahn <flo@fhahn.com>
Mon, 20 Feb 2023 10:28:24 +0000 (10:28 +0000)
committerFlorian Hahn <flo@fhahn.com>
Mon, 20 Feb 2023 10:28:26 +0000 (10:28 +0000)
commit9333b977638475d6b068cd005f8ea39406634c57
tree889919d258cf4ea5f74772511d02cbe278156c9d
parentda94a2b62a01ed49d4e97c0d21f95243217b1cae
[VPlan] Replace AlsoPack field with shouldPack() method (NFC).

There is no need to update the AlsoPack field when creating
VPReplicateRecipes. It can be easily computed based on the VP def-use
chains when it is needed.

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D143864
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h
llvm/lib/Transforms/Vectorize/VPlan.h
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp