[all-commits] [llvm/llvm-project] 2c2f49: [Analysis] Clean up getPromotionCandidatesForInstr...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Mon Jun 17 18:52:06 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c2f49059ff2999e06eb5ecb76af5b1ebd3e5477
      https://github.com/llvm/llvm-project/commit/2c2f49059ff2999e06eb5ecb76af5b1ebd3e5477
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-06-17 (Mon, 17 Jun 2024)

  Changed paths:
    M llvm/include/llvm/Analysis/IndirectCallPromotionAnalysis.h
    M llvm/lib/Analysis/IndirectCallPromotionAnalysis.cpp
    M llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
    M llvm/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp

  Log Message:
  -----------
  [Analysis] Clean up getPromotionCandidatesForInstruction (NFC) (#95624)

Callers of getPromotionCandidatesForInstruction pass NumVals as an out
parameter for the number of value-count pairs of the value profiling
data, but nobody uses the out parameter.

This patch removes the parameter and updates the callers.  Note that
the number of value-count pairs is still available via
getPromotionCandidatesForInstruction(...).size().



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list