[VPlan] Replace InvariantCond field from VPWidenSelectRecipe.
authorFlorian Hahn <flo@fhahn.com>
Fri, 10 Mar 2023 14:28:43 +0000 (15:28 +0100)
committerFlorian Hahn <flo@fhahn.com>
Fri, 10 Mar 2023 14:28:43 +0000 (15:28 +0100)
commit54558fd8f3ef1a8b29b1250b53961139d9fc0bed
treea0f1538a5238d1f8a7a75a0cdb000b2fe48bce31
parentfb8839110c0413e284d5a6ae037cb0c1c7dd6932
[VPlan] Replace InvariantCond field from VPWidenSelectRecipe.

There is no need to store information about invariance in the recipe.
Replace the fields with checks of the operands using
isDefinedOutsideVectorRegions.

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D144489
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPlan.h
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
llvm/lib/Transforms/Vectorize/VPlanTransforms.h
llvm/unittests/Transforms/Vectorize/VPlanHCFGTest.cpp
llvm/unittests/Transforms/Vectorize/VPlanTest.cpp