Cache HashSet in try_to_allocate_bundle_to_reg (#90)
Keep `conflict_set` allocated in `Env` instead of allocating a new one on every call. This improves register allocation performance by about 2%.
This commit is contained in:
@@ -87,6 +87,8 @@ impl<'a, F: Function> Env<'a, F> {
|
||||
|
||||
debug_annotations: std::collections::HashMap::new(),
|
||||
annotations_enabled,
|
||||
|
||||
conflict_set: Default::default(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user