[llvm] [hwasan] Invalidate DominatorTreeAnalysis after each function is sanitized (PR #66935)
Thurston Dang via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 21 14:32:05 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>();
----------------
thurstond wrote:
Good point, added.
https://github.com/llvm/llvm-project/pull/66935
More information about the llvm-commits
mailing list