[backend]修复了递归函数的调用问题,引入了新的bug?

This commit is contained in:
Lixuanwang
2025-07-27 01:07:08 +08:00
parent af318b6c0e
commit 2e8b564d8f
3 changed files with 70 additions and 47 deletions

View File

@@ -195,6 +195,7 @@ struct StackFrameInfo {
int locals_size = 0; // 仅为AllocaInst分配的大小
int spill_size = 0; // 仅为溢出分配的大小
int total_size = 0; // 总大小
int callee_saved_size = 0; // 保存寄存器的大小
std::map<unsigned, int> alloca_offsets; // <AllocaInst的vreg, 栈偏移>
std::map<unsigned, int> spill_offsets; // <溢出vreg, 栈偏移>
std::set<PhysicalReg> used_callee_saved_regs; // 使用的保存寄存器