diff options
author | Kazu Hirata <kazu@google.com> | 2025-06-02 07:59:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-02 07:59:34 -0700 |
commit | c261bb76499e3b6f9cd1b589410531a44dd29834 (patch) | |
tree | 403c56f54da484cf17b5ae07c4b563c5babfe9ee /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 77e2e3f64158939316ca576c4178663bc9dfee1b (diff) | |
download | llvm-c261bb76499e3b6f9cd1b589410531a44dd29834.zip llvm-c261bb76499e3b6f9cd1b589410531a44dd29834.tar.gz llvm-c261bb76499e3b6f9cd1b589410531a44dd29834.tar.bz2 |
[memprof] Deduplicate alloc site matches (#142334)
With:
commit 2425626d803002027cbf71c39df80cb7b56db0fb
Author: Kazu Hirata <kazu@google.com>
Date: Sun Jun 1 08:09:58 2025 -0700
we print out a lot of duplicate alloc site matches.
This patch partially reverts the patch above. The core idea of using
a map to deduplicate entries remains the same, but details are
different. Specifically:
- This PR uses the [FullStackID, MatchLength] as the key, where
MatchLength is the length of an alloc site match.
- AllocMatchInfo in this PR no longer has Matched because we always
report matches.
- AllocMatchInfo in this PR no longer has NumFramesMatched because it
has become part of the key.
This deduplication roughly halves the amount of messages printed out.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions