[all-commits] [llvm/llvm-project] 397e91: [MemProf][NFC] Compute SHADOW_ENTRY_SIZE from MEM_...
Enna1 via All-commits
all-commits at lists.llvm.org
Mon Feb 5 22:26:06 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 397e91f0f387bf2db0cc320a9078a60d2334545e
https://github.com/llvm/llvm-project/commit/397e91f0f387bf2db0cc320a9078a60d2334545e
Author: Enna1 <xumingjie.enna1 at bytedance.com>
Date: 2024-02-06 (Tue, 06 Feb 2024)
Changed paths:
M compiler-rt/lib/memprof/memprof_mapping.h
Log Message:
-----------
[MemProf][NFC] Compute SHADOW_ENTRY_SIZE from MEM_GRANULARITY and SHA… (#80589)
…DOW_SCALE
As MEM_GRANULARITY represents the size of memory block mapped to a
single shadow entry, and SHADOW_SCALE represents the scale of shadow
mapping, so the single shadow entry size can be computed as
(MEM_GRANULARITY >> SHADOW_SCALE).
This patch replaces the hardcoded SHADOW_ENTRY_SIZE with
(MEM_GRANULARITY >> SHADOW_SCALE).
More information about the All-commits
mailing list