[llvm] [nfc][mlgo] Incrementally update DominatorTreeAnalysis in FunctionPropertiesAnalysis (PR #104867)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 21 11:05:37 PDT 2024
================
@@ -356,6 +369,40 @@ FunctionPropertiesUpdater::FunctionPropertiesUpdater(
FPI.updateForBB(*BB, -1);
}
+DominatorTree &FunctionPropertiesUpdater::getUpdatedDominatorTree(
+ FunctionAnalysisManager &FAM) const {
+ auto &DT =
+ FAM.getResult<DominatorTreeAnalysis>(const_cast<Function &>(Caller));
+
+ DenseSet<const BasicBlock *> NewSucc;
----------------
mtrofin wrote:
ack, done.
https://github.com/llvm/llvm-project/pull/104867
More information about the llvm-commits
mailing list