[llvm] [Analysis] Update getPromotionCandidatesForInstruction description (NFC) (PR #107277)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 10:57:35 PDT 2024


https://github.com/teresajohnson created https://github.com/llvm/llvm-project/pull/107277

Updates the description for getPromotionCandidatesForInstruction to
reflect the cleanup done in #95624.


>From 91cdaa5f200b12e51cf5575568ab9b9037ae0f02 Mon Sep 17 00:00:00 2001
From: Teresa Johnson <tejohnson at google.com>
Date: Wed, 4 Sep 2024 10:54:15 -0700
Subject: [PATCH] [Analysis] Update getPromotionCandidatesForInstruction
 description (NFC)

Updates the description for getPromotionCandidatesForInstruction to
reflect the cleanup done in #95624.
---
 llvm/include/llvm/Analysis/IndirectCallPromotionAnalysis.h | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/llvm/include/llvm/Analysis/IndirectCallPromotionAnalysis.h b/llvm/include/llvm/Analysis/IndirectCallPromotionAnalysis.h
index b9cf048a710435..b6bdfb1275c927 100644
--- a/llvm/include/llvm/Analysis/IndirectCallPromotionAnalysis.h
+++ b/llvm/include/llvm/Analysis/IndirectCallPromotionAnalysis.h
@@ -49,9 +49,8 @@ class ICallPromotionAnalysis {
   /// Returns reference to array of InstrProfValueData for the given
   /// instruction \p I.
   ///
-  /// The \p NumVals, \p TotalCount and \p NumCandidates
-  /// are set to the number of values in the array, the total profile count
-  /// of the indirect call \p I, and the number of profitable candidates
+  /// The \p TotalCount and \p NumCandidates are set to the the total profile
+  /// count of the indirect call \p I and the number of profitable candidates
   /// in the given array (which is sorted in reverse order of profitability).
   ///
   /// The returned array space is owned by this class, and overwritten on



More information about the llvm-commits mailing list