llvm-project
87f0d41c - [MemProf] Refactor indirect call ICP info to reference callsite records (NFC) (#235142)

Commit
35 days ago
[MemProf] Refactor indirect call ICP info to reference callsite records (NFC) (#235142) Prepare for an upcoming change to support indirect tail calls. This will involve performing ICP using callsite records that are not laid out contiguously in the function's callsite list. Rather than recording a start index into the function's callsite records, have ICallAnalysisData hold a pointer to the CallsiteInfo for each profiled target, which recordICPInfo obtains via a callback. A null entry means there is no record for that target, in which case all clones call the original target. performICP then no longer needs the function's callsite list. Assisted-by: Gemini
Author
Parents
Loading