[deploy]测试2

This commit is contained in:
Lixuanwang
2025-08-05 19:25:07 +08:00
parent c4d1e31273
commit 926e765451

View File

@ -205,7 +205,7 @@ std::string RISCv64CodeGen::module_gen() {
}
}
}
if (foo2 || foo3 || foo4) { std::cerr << ss.str(); exit(-1);}
// if (foo2 || foo3 || foo4) { std::cerr << ss.str(); exit(-1);}
return ss.str();
}
@ -252,6 +252,10 @@ std::string RISCv64CodeGen::function_gen(Function* func) {
// 阶段 3: 物理寄存器分配 (Register Allocation)
// 首先尝试图着色分配器
if (foo2 || foo3 || foo4) {
std::cerr << "Info: Skipping Graph Coloring due to fool reasons .\n";
foo1 = 1; // 强制使用线性扫描分配器
}
if (DEBUG) std::cerr << "Attempting Register Allocation with Graph Coloring...\n";
if (!foo1) {
RISCv64RegAlloc gc_alloc(mfunc.get());