[compiler-rt] [hwasan] Optimize shadow shapshot size (PR #67068)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 21 16:29:16 PDT 2023


================
@@ -323,6 +323,22 @@ static uptr GetGlobalSizeFromDescriptor(uptr ptr) {
 
 void ReportStats() {}
 
+constexpr uptr kShadowDumpWidth = 16;
----------------
fmayer wrote:

This should be used in `PrintTagInfoAroundAddr`. I would call it `kDumpWidth`, because it gets used for shadow and short dumps.

https://github.com/llvm/llvm-project/pull/67068


More information about the llvm-commits mailing list