Home
last modified time | relevance | path

Searched refs:MinRZ (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DAddressSanitizer.cpp2391 const uint64_t MinRZ = getMinRedzoneSizeForGlobal(); in getRedzoneSizeForGlobal() local
2394 if (SizeInBytes <= MinRZ / 2) { in getRedzoneSizeForGlobal()
2398 RZ = MinRZ - SizeInBytes; in getRedzoneSizeForGlobal()
2401 RZ = std::max(MinRZ, std::min(kMaxRZ, (SizeInBytes / MinRZ / 4) * MinRZ)); in getRedzoneSizeForGlobal()
2404 if (SizeInBytes % MinRZ) in getRedzoneSizeForGlobal()
2405 RZ += MinRZ - (SizeInBytes % MinRZ); in getRedzoneSizeForGlobal()
2408 assert((RZ + SizeInBytes) % MinRZ == 0); in getRedzoneSizeForGlobal()