[llvm] 396b0b2 - [LV] Remove duplicate name set of vector header basic block. NFC

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 27 17:19:19 PST 2022


Author: Michael Maitland
Date: 2022-12-27T17:19:08-08:00
New Revision: 396b0b2b13439c83c875196fc74401eb3fd8d89d

URL: https://github.com/llvm/llvm-project/commit/396b0b2b13439c83c875196fc74401eb3fd8d89d
DIFF: https://github.com/llvm/llvm-project/commit/396b0b2b13439c83c875196fc74401eb3fd8d89d.diff

LOG: [LV] Remove duplicate name set of vector header basic block. NFC

The preheader was named explicitly in 256c6b0ba14e8a7ab6373b61b7193ea8c0a3651c
which makes setting the name in prior commit 95b2aa511eea1f31e183a2a3aed4d2aa852d089c
unnecessary.

Differential Revision: https://reviews.llvm.org/D140246

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 0c427f16c4ac..ac70a9ac9f35 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -8976,8 +8976,6 @@ VPlanPtr LoopVectorizationPlanner::buildVPlanWithVPRecipes(
     VPBB = cast<VPBasicBlock>(VPBB->getSingleSuccessor());
   }
 
-  HeaderVPBB->setName("vector.body");
-
   // After here, VPBB should not be used.
   VPBB = nullptr;
 


        


More information about the llvm-commits mailing list