From 4c90c8a4a871b54a79a8b64e26918c5a12e2c395 Mon Sep 17 00:00:00 2001 From: Chris Fallin Date: Wed, 30 Nov 2022 19:02:15 -0800 Subject: [PATCH] regalloc bugfix --- src/backend/localify.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/localify.rs b/src/backend/localify.rs index d5e77e4..777f7ae 100644 --- a/src/backend/localify.rs +++ b/src/backend/localify.rs @@ -113,6 +113,7 @@ impl<'a> Context<'a> { } fn handle_use(&mut self, live: &mut HashMap, 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.