[llvm] 5d31435 - [VPlan] Check for VPWidenLoadRecipe directly in truncateToMinBW. (NFCI).

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 17 07:54:00 PDT 2024


Author: Florian Hahn
Date: 2024-04-17T15:53:32+01:00
New Revision: 5d314353fbec1a15cd8900f466dcdcf2af40e8c9

URL: https://github.com/llvm/llvm-project/commit/5d314353fbec1a15cd8900f466dcdcf2af40e8c9
DIFF: https://github.com/llvm/llvm-project/commit/5d314353fbec1a15cd8900f466dcdcf2af40e8c9.diff

LOG: [VPlan] Check for VPWidenLoadRecipe directly in truncateToMinBW. (NFCI).

Since ne
After a separate recipe has been introduced for wide loads in
a9bafe91dd0, we can directly check for load recipes in the early
bail-out and remove the redundant bail out for stores.

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
index 78d0b5b95c5ec7..901ecd10c69d8f 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -975,9 +975,7 @@ void VPlanTransforms::truncateToMinimalBitwidths(
            vp_depth_first_deep(Plan.getVectorLoopRegion()))) {
     for (VPRecipeBase &R : make_early_inc_range(*VPBB)) {
       if (!isa<VPWidenRecipe, VPWidenCastRecipe, VPReplicateRecipe,
-               VPWidenSelectRecipe, VPWidenMemoryRecipe>(&R))
-        continue;
-      if (isa<VPWidenStoreRecipe>(&R))
+               VPWidenSelectRecipe, VPWidenLoadRecipe>(&R))
         continue;
 
       VPValue *ResultVPV = R.getVPSingleValue();


        


More information about the llvm-commits mailing list