[llvm] [hwasan] Invalidate DominatorTreeAnalysis after each function is sanitized (PR #66935)
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 21 14:16:16 PDT 2023
================
@@ -434,6 +438,10 @@ PreservedAnalyses HWAddressSanitizerPass::run(Module &M,
HWASan.sanitizeFunction(F, FAM);
PreservedAnalyses PA = PreservedAnalyses::none();
+ // DominatorTreeAnalysis and LoopAnalysis are incrementally updated
+ // throughout this pass whenever SplitBlockAndInsertIfThen is called.
+ PA.preserve<DominatorTreeAnalysis>();
+ PA.preserve<LoopAnalysis>();
----------------
fmayer wrote:
Can we add PostDominatorTreeAnalysis here too? Seems like DomTreeUpdater also takes care of that.
https://github.com/llvm/llvm-project/pull/66935
More information about the llvm-commits
mailing list