[llvm] 5bc304c - [VPlan][NFC] Extend comments of VPlan block numbers (#212025)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 25 08:21:39 PDT 2026


Author: Alexis Engelke
Date: 2026-07-25T15:21:34Z
New Revision: 5bc304c65494702d9d4928ff6cb369e6e6496e53

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

LOG: [VPlan][NFC] Extend comments of VPlan block numbers (#212025)

Address during-commit review feedback.

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/VPlan.h

Removed: 
    


################################################################################
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