[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:21:44 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:
(And if not, please add a comment in the code on why not, because I think that's a natural question)
https://github.com/llvm/llvm-project/pull/66935
More information about the llvm-commits
mailing list