[llvm] [HWASAN] Follow up for #83503 implement selective instrumentation (PR #83942)

Kirill Stoimenov via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 6 15:18:59 PST 2024


================
@@ -181,16 +185,20 @@ static cl::opt<bool> ClWithTls(
     cl::Hidden, cl::init(true));
 
 static cl::opt<bool>
-    CSkipHotCode("hwasan-skip-hot-code",
-                 cl::desc("Do not instument hot functions based on FDO."),
-                 cl::Hidden, cl::init(false));
+    CSelectiveInstrumentation("hwasan-selective-instrumentation",
----------------
kstoimenov wrote:

Becuse the flag controls hwasan-random-skip-rate and hwasan-percentile-cutoff-hot I think it makes more sense to call it hwasan-selective-instrumentation because hwasan-random-skip-rate doesn't use FDO at all. 

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


More information about the llvm-commits mailing list