[all-commits] [llvm/llvm-project] f1b7d0: [MemProf][NFC] Compute SHADOW_ENTRY_SIZE from MEM_...
Enna1 via All-commits
all-commits at lists.llvm.org
Sat Feb 3 23:28:35 PST 2024
Branch: refs/heads/users/Enna1/memprof-compute-shadow-entry-size
Home: https://github.com/llvm/llvm-project
Commit: f1b7d0b2f4b001904dd08ade2425db1943505a1f
https://github.com/llvm/llvm-project/commit/f1b7d0b2f4b001904dd08ade2425db1943505a1f
Author: xumingjie.enna1 <xumingjie.enna1 at bytedance.com>
Date: 2024-02-04 (Sun, 04 Feb 2024)
Changed paths:
M compiler-rt/lib/memprof/memprof_mapping.h
Log Message:
-----------
[MemProf][NFC] Compute SHADOW_ENTRY_SIZE from MEM_GRANULARITY and SHADOW_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