regalloc bugfix

This commit is contained in:
Chris Fallin 2022-11-30 19:02:15 -08:00
parent 1788a42aa1
commit 4c90c8a4a8
No known key found for this signature in database
GPG key ID: 31649E4FE65EB465

View file

@ -113,6 +113,7 @@ impl<'a> Context<'a> {
}
fn handle_use(&mut self, live: &mut HashMap<Value, usize>, point: &mut usize, value: Value) {
let value = self.body.resolve_alias(value);
if self.trees.owner.contains_key(&value) {
// If this is a treeified value, then don't process the use,
// but process the instruction directly here.