Lab5: Implement register-aliasing-aware peephole optimization pass for redundant stack instruction elimination

This commit is contained in:
2026-05-18 14:30:22 +08:00
committed by CGH0S7
parent 8f7e0ac5b4
commit 4475e91bd8
4 changed files with 277 additions and 3 deletions

View File

@@ -53,6 +53,7 @@ int main(int argc, char** argv) {
for (auto& machine_func : machine_funcs) {
mir::RunRegAlloc(*machine_func);
mir::RunFrameLowering(*machine_func);
mir::RunPeephole(*machine_func);
if (need_blank_line) {
std::cout << "\n";
}