[all-commits] [llvm/llvm-project] 2b2123: [MemProf] Enhance thin link optimization remarks (...

Teresa Johnson via All-commits all-commits at lists.llvm.org
Thu Mar 5 23:02:19 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2b212315f13e4cec44f25560ce5c3fc742657084
      https://github.com/llvm/llvm-project/commit/2b212315f13e4cec44f25560ce5c3fc742657084
  Author: Teresa Johnson <tejohnson at google.com>
  Date:   2026-03-05 (Thu, 05 Mar 2026)

  Changed paths:
    M llvm/include/llvm/Transforms/IPO/MemProfContextDisambiguation.h
    M llvm/lib/LTO/LTO.cpp
    M llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp
    M llvm/test/ThinLTO/X86/memprof-basic.ll
    M llvm/test/ThinLTO/X86/memprof-report-hinted-partial.ll
    A llvm/test/ThinLTO/X86/remark-missing-info.ll
    M llvm/test/Transforms/MemProfContextDisambiguation/basic.ll
    M llvm/test/Transforms/MemProfContextDisambiguation/inlined3.ll
    A llvm/test/Transforms/MemProfContextDisambiguation/remark-missing-info.ll

  Log Message:
  -----------
  [MemProf] Enhance thin link optimization remarks (#184829)

Don't require -memprof-report-hinted-sizes for emitting opt remarks
during the thin link step. Invoke the handling also when opt remarks are
enabled for MemProf per OptimizationRemarkEmitter::allowExtraAnalysis.

Also, add a fallback message if we don't have the context size
information, adding tests for those new messages.

I also realized we don't currently emit these messages for MemProf with
regular LTO, and added a TODO.



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