[deploy]禁用标量相关优化

This commit is contained in:
Lixuanwang
2025-08-20 12:53:50 +08:00
parent f99805bf13
commit 1f8a6f6da3

View File

@ -133,9 +133,9 @@ void PassManager::runOptimizationPipeline(Module* moduleIR, IRBuilder* builderIR
printPasses();
}
this->clearPasses();
this->addPass(&GVN::ID);
this->run();
// this->clearPasses();
// this->addPass(&GVN::ID);
// this->run();
this->clearPasses();
this->addPass(&TailCallOpt::ID);
@ -152,9 +152,9 @@ void PassManager::runOptimizationPipeline(Module* moduleIR, IRBuilder* builderIR
printPasses();
}
this->clearPasses();
this->addPass(&SCCP::ID);
this->run();
// this->clearPasses();
// this->addPass(&SCCP::ID);
// this->run();
if(DEBUG) {
std::cout << "=== IR After SCCP Optimizations ===\n";
@ -190,10 +190,10 @@ void PassManager::runOptimizationPipeline(Module* moduleIR, IRBuilder* builderIR
printPasses();
}
// 全局强度削弱优化,包括代数优化和魔数除法
this->clearPasses();
this->addPass(&GlobalStrengthReduction::ID);
this->run();
// // 全局强度削弱优化,包括代数优化和魔数除法
// this->clearPasses();
// this->addPass(&GlobalStrengthReduction::ID);
// this->run();
if(DEBUG) {
std::cout << "=== IR After Global Strength Reduction Optimizations ===\n";