[all-commits] [llvm/llvm-project] c9a3d2: [memprof] Update the frame is inline logic and uni...

Snehasish Kumar via All-commits all-commits at lists.llvm.org
Mon Mar 21 10:42:03 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c9a3d29613dbf3b011c2660356fa482cc10b9160
      https://github.com/llvm/llvm-project/commit/c9a3d29613dbf3b011c2660356fa482cc10b9160
  Author: Snehasish Kumar <snehasishk at google.com>
  Date:   2022-03-21 (Mon, 21 Mar 2022)

  Changed paths:
    M llvm/lib/ProfileData/RawMemProfReader.cpp
    M llvm/unittests/ProfileData/MemProfTest.cpp

  Log Message:
  -----------
  [memprof] Update the frame is inline logic and unittests.

Since DI frames are enumerated with the leaf function at index 0, this
patch fixes the logic when IsInlineFrame is set. Also update the
unittests to check that only the last frame is marked as non-inline from
a set of DI Frames for a PC address.

Differential Revision: https://reviews.llvm.org/D121830


  Commit: 5cfb1100902eba94ae8a215900aed3b92a87141a
      https://github.com/llvm/llvm-project/commit/5cfb1100902eba94ae8a215900aed3b92a87141a
  Author: Snehasish Kumar <snehasishk at google.com>
  Date:   2022-03-21 (Mon, 21 Mar 2022)

  Changed paths:
    M llvm/include/llvm/DebugInfo/DIContext.h

  Log Message:
  -----------
  [DebugInfo][NFC] Add a comment on the ordering of DILineInfo frames.

Add a comment to getFrame() to mention that frames are stored in
bottom-up, i.e. leaf to root in order of increasing index.

Differential Revision: https://reviews.llvm.org/D122033


Compare: https://github.com/llvm/llvm-project/compare/69a7759b402f...5cfb1100902e


More information about the All-commits mailing list