Skip to content

Commit 5d31435

Browse files
committed
[VPlan] Check for VPWidenLoadRecipe directly in truncateToMinBW. (NFCI).
Since ne After a separate recipe has been introduced for wide loads in a9bafe9, we can directly check for load recipes in the early bail-out and remove the redundant bail out for stores.
1 parent 4a5ab13 commit 5d31435

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -975,9 +975,7 @@ void VPlanTransforms::truncateToMinimalBitwidths(
975975
vp_depth_first_deep(Plan.getVectorLoopRegion()))) {
976976
for (VPRecipeBase &R : make_early_inc_range(*VPBB)) {
977977
if (!isa<VPWidenRecipe, VPWidenCastRecipe, VPReplicateRecipe,
978-
VPWidenSelectRecipe, VPWidenMemoryRecipe>(&R))
979-
continue;
980-
if (isa<VPWidenStoreRecipe>(&R))
978+
VPWidenSelectRecipe, VPWidenLoadRecipe>(&R))
981979
continue;
982980

983981
VPValue *ResultVPV = R.getVPSingleValue();

0 commit comments

Comments
 (0)