[all-commits] [llvm/llvm-project] 9eed89: [MemProf] Handle empty stack context during ThinLT...

Teresa Johnson via All-commits all-commits at lists.llvm.org
Wed Feb 7 10:46:47 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9eed89908cc906850ef9c6a97ed7a5642ecd6599
      https://github.com/llvm/llvm-project/commit/9eed89908cc906850ef9c6a97ed7a5642ecd6599
  Author: Teresa Johnson <tejohnson at google.com>
  Date:   2024-02-07 (Wed, 07 Feb 2024)

  Changed paths:
    M llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp
    A llvm/test/ThinLTO/X86/memprof-import-fix.ll

  Log Message:
  -----------
  [MemProf] Handle empty stack context during ThinLTO cloning (#81008)

Fix for assert after PR#78264.

Handle the case where the MIB context is empty after skipping the
callsite context, because the callsite context is actually longer than
the MIB context. Presumably this happened as a result of inlining, but
in theory the metadata should have been replaced with an attribute in
that case. Need to investigate why this is occuring, but for now handle
this gracefully to fix the build regression.




More information about the All-commits mailing list