llvm-project
08657419 - [asan] Drop repeated address checks from __asan_region_is_poisoned (#242408)

Commit
3 days ago
[asan] Drop repeated address checks from __asan_region_is_poisoned (#242408) `__asan_region_is_poisoned` checks both ends of the region with `AddrIsInMem`, and `MemToShadow` then checks them again. Use `MEM_TO_SHADOW` directly and drop the redundant rounding and CHECKs. Interceptors call this for every range above 64 bytes (32 on 32-bit). For heap and stack ranges on x86_64 Linux it saves about 60 instructions per call (190 to 131 for 65 bytes). Assisted-by: Claude. I have read every line of this PR.
Author
Parents
Loading