[backend-O1-1]修复了寄存器分配器在处理函数参数时不健壮的问题

This commit is contained in:
Lixuanwang
2025-08-20 01:37:59 +08:00
parent ef68235446
commit dd2725796a
4 changed files with 147 additions and 32 deletions

View File

@@ -45,12 +45,11 @@ private:
void rewriteProgram();
bool doAllocation();
void applyColoring();
void dumpState(const std::string &stage);
void precolorByCallingConvention();
void protectCrossCallVRegs();
// --- 辅助函数 ---
void dumpState(const std::string &stage);
void getInstrUseDef(const MachineInstr* instr, VRegSet& use, VRegSet& def);
void getInstrUseDef_Liveness(const MachineInstr *instr, VRegSet &use, VRegSet &def);
void addEdge(unsigned u, unsigned v);