[llvm] [HWASAN] Follow up for #83503 implement selective instrumentation (PR #83942)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 6 09:55:52 PST 2024
================
@@ -1527,6 +1533,9 @@ void HWAddressSanitizer::sanitizeFunction(Function &F,
NumTotalFuncs++;
if (CSkipHotCode) {
+ if ((F.getGUID() % MaxRandomRate) < SkipInstRandomRate) {
----------------
vitalybuka wrote:
I guess we agreed to use `createRNG(F.getName());` like in #83471
https://github.com/llvm/llvm-project/pull/83942
More information about the llvm-commits
mailing list