diff options
author | Enna1 <xumingjie.enna1@bytedance.com> | 2024-02-06 14:25:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-06 14:25:55 +0800 |
commit | 397e91f0f387bf2db0cc320a9078a60d2334545e (patch) | |
tree | f5d65807dc1596118915b487046f4bdbf0d59b02 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp | |
parent | fa70b5d1309f15244cb5528d545d42865cbf8e18 (diff) | |
download | llvm-397e91f0f387bf2db0cc320a9078a60d2334545e.zip llvm-397e91f0f387bf2db0cc320a9078a60d2334545e.tar.gz llvm-397e91f0f387bf2db0cc320a9078a60d2334545e.tar.bz2 |
[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).
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
0 files changed, 0 insertions, 0 deletions