[llvm] [MemProf] Support cloning for indirect calls with ThinLTO (PR #110625)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 9 20:35:53 PDT 2024


================
@@ -3933,6 +4215,16 @@ bool MemProfContextDisambiguation::applyImport(Module &M) {
       MapTailCallCalleeVIToCallsite.insert({Callsite.Callee, Callsite});
     }
 
+    // Data structures for saving indirect call profile info for use in ICP with
+    // cloning.
+    struct ICallAnalysisData {
+      std::vector<InstrProfValueData> CandidateProfileData;
+      uint32_t NumCandidates;
+      uint64_t TotalCount;
+      unsigned CallsiteInfoStartIndex;
----------------
teresajohnson wrote:

The types of the others come from the ICP helper code, and seemed like overkill for the index. Good idea to use size_t, done

https://github.com/llvm/llvm-project/pull/110625


More information about the llvm-commits mailing list