commit | c261bb76499e3b6f9cd1b589410531a44dd29834 | [log] [tgz] |
---|---|---|
author | Kazu Hirata <kazu@google.com> | Mon Jun 02 07:59:34 2025 -0700 |
committer | GitHub <noreply@github.com> | Mon Jun 02 07:59:34 2025 -0700 |
tree | 403c56f54da484cf17b5ae07c4b563c5babfe9ee | |
parent | 77e2e3f64158939316ca576c4178663bc9dfee1b [diff] |
[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.
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.