[clang] [llvm] [LLVM][rtsan] Add module pass to initialize rtsan (PR #118989)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 11 18:36:10 PST 2024
================
@@ -1024,12 +1024,14 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
FPM.addPass(BoundsCheckingPass());
});
- if (LangOpts.Sanitize.has(SanitizerKind::Realtime))
+ if (LangOpts.Sanitize.has(SanitizerKind::Realtime)) {
PB.registerScalarOptimizerLateEPCallback(
[](FunctionPassManager &FPM, OptimizationLevel Level) {
RealtimeSanitizerOptions Opts;
FPM.addPass(RealtimeSanitizerPass(Opts));
});
+ MPM.addPass(ModuleRealtimeSanitizerPass());
----------------
vitalybuka wrote:
Also we converted all but tsan from function+module to just module pass. Easier to maintain.
https://github.com/llvm/llvm-project/pull/118989
More information about the llvm-commits
mailing list