remove add_term_to_free_list from AddToList (#1684)

This commit is contained in:
Mark Thom
2023-01-10 18:24:38 -07:00
parent a4e8bfc1ba
commit 0c4d93f01f
2 changed files with 2 additions and 16 deletions

View File

@@ -214,10 +214,8 @@ impl DebrayAllocator {
pub fn add_to_free_list(&mut self, r: RegType) {
if let RegType::Temp(r) = r {
if r > self.arity {
self.in_use.remove(&r);
self.free_list.push(r);
}
self.in_use.remove(&r);
self.free_list.push(r);
}
}
}