[compiler-rt] [llvm] [TySan] Add option to outline instrumentation (PR #120582)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 18 02:21:10 PDT 2025
================
@@ -886,6 +960,11 @@ PreservedAnalyses TypeSanitizerPass::run(Module &M,
for (Function &F : M) {
const TargetLibraryInfo &TLI = FAM.getResult<TargetLibraryAnalysis>(F);
TySan.sanitizeFunction(F, TLI);
+ if (ClVerifyOutlinedInstrumentation && ClOutlineInstrumentation) {
+ ClOutlineInstrumentation = false;
+ TySan.sanitizeFunction(F, TLI);
+ ClOutlineInstrumentation = true;
+ }
----------------
fhahn wrote:
Could you add a brief comment documenting the logic here. It verifies both the outline and inline instrumentation behaves the same, if there are no violations; the outlined instrumentation may still trigger a verification failure the inlined instrumentation would not and vice versa?
https://github.com/llvm/llvm-project/pull/120582
More information about the llvm-commits
mailing list