[all-commits] [llvm/llvm-project] ab07c5: [memprof] Don't use Frame::hash() (NFC) (#119828)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Fri Dec 13 13:59:09 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ab07c51534b904bab55bcaaf950823fc72719b11
      https://github.com/llvm/llvm-project/commit/ab07c51534b904bab55bcaaf950823fc72719b11
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-12-13 (Fri, 13 Dec 2024)

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

  Log Message:
  -----------
  [memprof] Don't use Frame::hash() (NFC) (#119828)

In these tests, we just want to add one instance of
IndexedMemProfRecord to MemProfData.Records and retrieve it from
MemProfReader.  There is no particular reason to associate F1.hash()
with the IndexedMemProfRecord instance.  A fake value suffices.

While I am at it, I'm switching to try_emplace so that I can move
FakeRecord.



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