regalloc fix: scan blocks bottom-up, not top-down!
This commit is contained in:
parent
38591d90a3
commit
1788a42aa1
|
@ -65,7 +65,7 @@ impl<'a> Context<'a> {
|
|||
});
|
||||
point += 1;
|
||||
|
||||
for &inst in &self.body.blocks[block].insts {
|
||||
for &inst in self.body.blocks[block].insts.iter().rev() {
|
||||
self.handle_inst(&mut live, &mut point, inst, /* root = */ true);
|
||||
point += 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue