[llvm] [ProfileData] Add getValueArrayForSite (PR #95335)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 13 11:00:11 PDT 2024
================
@@ -2696,7 +2696,8 @@ static void traverseAllValueSites(const InstrProfRecord &Func, uint32_t VK,
Stats.TotalNumValueSites += NS;
for (size_t I = 0; I < NS; ++I) {
uint32_t NV = Func.getNumValueDataForSite(VK, I);
- std::unique_ptr<InstrProfValueData[]> VD = Func.getValueForSite(VK, I);
+ std::unique_ptr<InstrProfValueData[]> VD =
----------------
kazutakahirata wrote:
Thanks! The latest iteration does not touch this part of the code. I'll keep `auto VD` in mind when I migrate the code in question to `getValueArrayForSite` in follow-up patches.
https://github.com/llvm/llvm-project/pull/95335
More information about the llvm-commits
mailing list