[all-commits] [llvm/llvm-project] 87f5e2: [MemProf] Tolerate missing leaf debug frames (#71233)

Teresa Johnson via All-commits all-commits at lists.llvm.org
Fri Nov 3 21:01:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 87f5e22987f509b7bd5b67eb2a19697508077f25
      https://github.com/llvm/llvm-project/commit/87f5e22987f509b7bd5b67eb2a19697508077f25
  Author: Teresa Johnson <tejohnson at google.com>
  Date:   2023-11-03 (Fri, 03 Nov 2023)

  Changed paths:
    M llvm/include/llvm/Passes/PassBuilder.h
    M llvm/lib/Passes/PassBuilderPipelines.cpp
    M llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
    A llvm/test/Other/new-pm-memprof.ll
    A llvm/test/Transforms/PGOProfile/Inputs/memprof_missing_leaf.exe
    A llvm/test/Transforms/PGOProfile/Inputs/memprof_missing_leaf.memprofraw
    M llvm/test/Transforms/PGOProfile/Inputs/update_memprof_inputs.sh
    A llvm/test/Transforms/PGOProfile/memprof_missing_leaf.ll

  Log Message:
  -----------
  [MemProf] Tolerate missing leaf debug frames (#71233)

Loosen up the matching so that a missing leaf debug frame in the profile
does not prevent matching an allocation context if we can match further
up the inlined call context. This relies on the pre-inliner, which was
already the default when performing normal PGO feedback along with the
MemProf feedback, but to ensure matching is not affected by the presence
of PGO, enable the pre-inliner for MemProf feedback as well.




More information about the All-commits mailing list