[llvm] [ProfileData] Add getValueArrayForSite (PR #95335)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 13 11:00:28 PDT 2024
================
@@ -1090,7 +1091,8 @@ void InstrProfWriter::writeRecordInText(StringRef Name, uint64_t Hash,
for (uint32_t S = 0; S < NS; S++) {
uint32_t ND = Func.getNumValueDataForSite(VK, S);
OS << ND << "\n";
- std::unique_ptr<InstrProfValueData[]> VD = Func.getValueForSite(VK, S);
+ std::unique_ptr<InstrProfValueData[]> VD =
----------------
kazutakahirata wrote:
Likewise, 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