[llvm] [hwasan] Invalidate DominatorTreeAnalysis after each function is sanitized (PR #66935)
    Florian Hahn via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Sep 22 02:57:12 PDT 2023
    
    
  
================
@@ -1520,10 +1537,10 @@ void HWAddressSanitizer::sanitizeFunction(Function &F,
                    Mapping.WithFrameRecord &&
                    !SInfo.AllocasToInstrument.empty());
 
+  DominatorTree &DT = FAM.getResult<DominatorTreeAnalysis>(F);
----------------
fhahn wrote:
This now may request the DT/LI/PDT in cases where it wasn't before, which should probably avoided. In cases they are only needed for updating them/preserving them, you can use `FAM.getCachedResult`, which won't cause the DT to be computed if it isn't already cached.
https://github.com/llvm/llvm-project/pull/66935
    
    
More information about the llvm-commits
mailing list