[llvm] [VPlan][NFC] Extend comments of VPlan block numbers (PR #212025)

Alexis Engelke via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 25 07:44:21 PDT 2026


https://github.com/aengelke created https://github.com/llvm/llvm-project/pull/212025

Address during-commit review feedback.


>From c7299ae5c3f40e863f145b5cc5e036800deb6387 Mon Sep 17 00:00:00 2001
From: Alexis Engelke <engelke at in.tum.de>
Date: Sat, 25 Jul 2026 14:43:41 +0000
Subject: [PATCH] [spr] initial version

Created using spr 1.3.8-wip
---
 llvm/lib/Transforms/Vectorize/VPlan.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h
index 389b9ba872067..b0d012e80b403 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -126,7 +126,7 @@ class LLVM_ABI_FOR_TEST VPBlockBase {
   /// Subclass identifier (for isa/dyn_cast).
   const VPBlockTy SubclassID;
 
-  /// Unique number.
+  /// Unique number, used as node number in the dominator tree.
   unsigned Number;
 
   /// Add \p Successor as the last successor to this block.
@@ -353,8 +353,10 @@ class LLVM_ABI_FOR_TEST VPBlockBase {
     return std::distance(Successors.begin(), find(Successors, Succ));
   }
 
-  /// Set a per-plan unique number, used for dominator tree.
+  /// Return the unique number of the block.
   unsigned getNumber() const { return Number; }
+
+  /// Set the unique number of the block, used for dominator tree.
   void setNumber(unsigned N) { Number = N; }
 
   /// The method which generates the output IR that correspond to this



More information about the llvm-commits mailing list