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

Michael Maitland via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 16 13:50:52 PST 2022


michaelmaitland created this revision.
michaelmaitland added reviewers: fhahn, nikolaypanchenko.
Herald added a subscriber: hiraditya.
Herald added a project: All.
michaelmaitland requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.
Herald added a project: LLVM.

The preheader was named explicitly in 256c6b0ba14e8a7ab6373b61b7193ea8c0a3651c <https://reviews.llvm.org/rG256c6b0ba14e8a7ab6373b61b7193ea8c0a3651c>
which makes setting the name in prior commit 95b2aa511eea1f31e183a2a3aed4d2aa852d089c <https://reviews.llvm.org/rG95b2aa511eea1f31e183a2a3aed4d2aa852d089c>
unnecessary.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140246

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


Index: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
===================================================================
--- llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -8979,8 +8979,6 @@
     VPBB = cast<VPBasicBlock>(VPBB->getSingleSuccessor());
   }
 
-  HeaderVPBB->setName("vector.body");
-
   // Fold the last, empty block into its predecessor.
   VPBB = VPBlockUtils::tryToMergeBlockIntoPredecessor(VPBB);
   assert(VPBB && "expected to fold last (empty) block");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140246.483664.patch
Type: text/x-patch
Size: 532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221216/32bc245b/attachment.bin>


More information about the llvm-commits mailing list