[midend]通过编译,TODO:验证正确性

This commit is contained in:
rain2133
2025-07-22 22:38:47 +08:00
parent f61b51b2fa
commit 3df3d7a097
6 changed files with 32 additions and 19 deletions

View File

@@ -165,7 +165,7 @@ void DominatorTree::computeDominanceFrontiers(Function *F) {
// ==============================================================
bool DominatorTreeAnalysisPass::runOnFunction(Function* F) {
bool DominatorTreeAnalysisPass::runOnFunction(Function* F, AnalysisManager &AM) {
CurrentDominatorTree = std::make_unique<DominatorTree>(F);
CurrentDominatorTree->computeDominators(F);
CurrentDominatorTree->computeIDoms(F);