[llvm] [ProfileData] Add a variant of getValueProfDataFromInst (PR #95993)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 19 06:42:57 PDT 2024
================
@@ -1381,6 +1381,45 @@ getValueProfDataFromInst(const Instruction &Inst, InstrProfValueKind ValueKind,
return ValueDataArray;
}
+SmallVector<InstrProfValueData, 4>
+getValueProfDataFromInst(const Instruction &Inst, InstrProfValueKind ValueKind,
+ uint32_t MaxNumValueData, uint64_t &TotalC,
+ bool GetNoICPValue) {
+ // Running a large application, namely clang, results in at most 4 elements
+ // here. Make all of them inline as 4 is reasonably small.
+ SmallVector<InstrProfValueData, 4> ValueData;
----------------
kazutakahirata wrote:
OK. I've revised comment.
https://github.com/llvm/llvm-project/pull/95993
More information about the llvm-commits
mailing list