[llvm] [nfc][mlgo] Incrementally update DominatorTreeAnalysis in FunctionPropertiesAnalysis (PR #104867)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 21 09:36:59 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;
----------------
nikic wrote:
Needs to be SetVector, you'll get nondet results otherwise.
https://github.com/llvm/llvm-project/pull/104867
More information about the llvm-commits
mailing list