[all-commits] [llvm/llvm-project] 442050: [ctxprof] Flatten indirect call info in pre-thinli...

Mircea Trofin via All-commits all-commits at lists.llvm.org
Tue Apr 8 17:33:58 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 442050ce8f10abaef8d7ff1e7dd28aa321d97e86
      https://github.com/llvm/llvm-project/commit/442050ce8f10abaef8d7ff1e7dd28aa321d97e86
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2025-04-08 (Tue, 08 Apr 2025)

  Changed paths:
    M llvm/include/llvm/Analysis/CtxProfAnalysis.h
    M llvm/lib/Analysis/CtxProfAnalysis.cpp
    M llvm/lib/Transforms/Instrumentation/PGOCtxProfFlattening.cpp
    A llvm/test/Analysis/CtxProfAnalysis/flatten-insert-icp-mdprof.ll

  Log Message:
  -----------
  [ctxprof] Flatten indirect call info in pre-thinlink compilation (#134766)

Same idea as in #134723 - flatten indirect call info in `"VP"` `MD_prof` metadata for the thinlinker, for cases that aren't covered by a contextual profile. If we don't ICP an indirect call target in the specialized module, the call will fall to the copy of that target outside the specialized module. If the graph under that target also has some indirect calls, in the absence of this pass, we'd have a steeper performance regression - because none of those would have a chance to be ICPed.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list