[midend-Loop-IVE]循环归纳变量消除逻辑重构,修改运行顺序

This commit is contained in:
rain2133
2025-08-14 17:27:53 +08:00
parent 7547d34598
commit a3435e7c26
3 changed files with 587 additions and 32 deletions

View File

@@ -140,9 +140,9 @@ void PassManager::runOptimizationPipeline(Module* moduleIR, IRBuilder* builderIR
this->clearPasses();
this->addPass(&LoopNormalizationPass::ID);
this->addPass(&InductionVariableElimination::ID);
this->addPass(&LICM::ID);
this->addPass(&LoopStrengthReduction::ID);
this->addPass(&InductionVariableElimination::ID);
this->run();
if(DEBUG) {