fix: support high register slots in register allocation

This commit is contained in:
爱特每羊队
2026-08-11 12:37:56 +08:00
parent 4bac4640c6
commit 1a7cef45d9
6 changed files with 235 additions and 48 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ fn smoke(src: &str) {
for s in &m.spills {
assert!(slots.insert(s.slot), "spill slot {} 重复", s.slot);
}
assert!(m.phys_peak <= 253, "phys_peak {} 超 253", m.phys_peak);
assert!(m.phys_peak <= 254, "phys_peak {} 超 254", m.phys_peak);
}
fn is_precolored(ir: &oxide_ir::IRFunction, c: u32) -> bool {