[backend]修复87

This commit is contained in:
Lixuanwang
2025-08-17 09:01:49 +08:00
parent 5ef01ada90
commit d77aedaf8b
2 changed files with 207 additions and 93 deletions

View File

@@ -220,7 +220,7 @@ std::string RISCv64CodeGen::function_gen(Function* func) {
EliminateFrameIndicesPass efi_pass;
efi_pass.runOnMachineFunction(mfunc.get());
if (true) {
if (DEBUG) {
std::cerr << "====== stack info after eliminate frame indices ======\n";
mfunc->dumpStackFrameInfo(std::cerr);
std::stringstream ss_after_eli;
@@ -241,7 +241,7 @@ std::string RISCv64CodeGen::function_gen(Function* func) {
// 首先尝试图着色分配器
// int fooo = 0;
int fooo = 0;
int fooo = 1;
// DEBUG = 1;
// DEEPDEBUG = 1;
if (fooo) {