[deploy]禁用标量相关优化
This commit is contained in:
@@ -133,9 +133,9 @@ void PassManager::runOptimizationPipeline(Module* moduleIR, IRBuilder* builderIR
|
|||||||
printPasses();
|
printPasses();
|
||||||
}
|
}
|
||||||
|
|
||||||
this->clearPasses();
|
// this->clearPasses();
|
||||||
this->addPass(&GVN::ID);
|
// this->addPass(&GVN::ID);
|
||||||
this->run();
|
// this->run();
|
||||||
|
|
||||||
this->clearPasses();
|
this->clearPasses();
|
||||||
this->addPass(&TailCallOpt::ID);
|
this->addPass(&TailCallOpt::ID);
|
||||||
@@ -152,9 +152,9 @@ void PassManager::runOptimizationPipeline(Module* moduleIR, IRBuilder* builderIR
|
|||||||
printPasses();
|
printPasses();
|
||||||
}
|
}
|
||||||
|
|
||||||
this->clearPasses();
|
// this->clearPasses();
|
||||||
this->addPass(&SCCP::ID);
|
// this->addPass(&SCCP::ID);
|
||||||
this->run();
|
// this->run();
|
||||||
|
|
||||||
if(DEBUG) {
|
if(DEBUG) {
|
||||||
std::cout << "=== IR After SCCP Optimizations ===\n";
|
std::cout << "=== IR After SCCP Optimizations ===\n";
|
||||||
@@ -190,10 +190,10 @@ void PassManager::runOptimizationPipeline(Module* moduleIR, IRBuilder* builderIR
|
|||||||
printPasses();
|
printPasses();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 全局强度削弱优化,包括代数优化和魔数除法
|
// // 全局强度削弱优化,包括代数优化和魔数除法
|
||||||
this->clearPasses();
|
// this->clearPasses();
|
||||||
this->addPass(&GlobalStrengthReduction::ID);
|
// this->addPass(&GlobalStrengthReduction::ID);
|
||||||
this->run();
|
// this->run();
|
||||||
|
|
||||||
if(DEBUG) {
|
if(DEBUG) {
|
||||||
std::cout << "=== IR After Global Strength Reduction Optimizations ===\n";
|
std::cout << "=== IR After Global Strength Reduction Optimizations ===\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user