[midend-GVN]segmentation fault是GVN引入的已修复,LICM仍然有错误

This commit is contained in:
rain2133
2025-08-17 14:37:27 +08:00
parent 8763c0a11a
commit 969a78a088
2 changed files with 243 additions and 24 deletions

View File

@@ -161,14 +161,14 @@ void PassManager::runOptimizationPipeline(Module* moduleIR, IRBuilder* builderIR
}
this->clearPasses();
this->addPass(&LICM::ID);
this->run();
// this->clearPasses();
// this->addPass(&LICM::ID);
// this->run();
if(DEBUG) {
std::cout << "=== IR After LICM ===\n";
printPasses();
}
// if(DEBUG) {
// std::cout << "=== IR After LICM ===\n";
// printPasses();
// }
this->clearPasses();
this->addPass(&LoopStrengthReduction::ID);