[llvm] [ASAN][AMDGPU] Make address sanitizer checks more efficient for the divergent target. (PR #72247)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 28 09:52:37 PST 2023
================
@@ -1758,7 +1786,15 @@ void AddressSanitizer::instrumentAddress(Instruction *OrigIns,
size_t Granularity = 1ULL << Mapping.Scale;
Instruction *CrashTerm = nullptr;
- if (ClAlwaysSlowPath || (TypeStoreSize < 8 * Granularity)) {
+ bool GenSlowPath = (ClAlwaysSlowPath || (TypeStoreSize < 8 * Granularity));
+
+ if (TargetTriple.isAMDGPU()) {
+ if (GenSlowPath) {
----------------
vitalybuka wrote:
Don't you need
```
} else {
```
from line 1815?
https://github.com/llvm/llvm-project/pull/72247
More information about the llvm-commits
mailing list