Address review comments.
This commit is contained in:
@@ -41,8 +41,8 @@ impl<'a, F: Function> Env<'a, F> {
|
||||
}
|
||||
|
||||
// If either bundle is already assigned (due to a pinned vreg), don't merge.
|
||||
if !self.bundles[from.index()].allocation.is_none()
|
||||
|| !self.bundles[to.index()].allocation.is_none()
|
||||
if self.bundles[from.index()].allocation.is_some()
|
||||
|| self.bundles[to.index()].allocation.is_some()
|
||||
{
|
||||
log::trace!("one of the bundles is already assigned (pinned)");
|
||||
return false;
|
||||
|
||||
@@ -817,8 +817,8 @@ impl<'a, F: Function> Env<'a, F> {
|
||||
to_alloc,
|
||||
to_vreg.index(),
|
||||
);
|
||||
assert!(!from_alloc.is_none());
|
||||
assert!(!to_alloc.is_none());
|
||||
assert!(from_alloc.is_some());
|
||||
assert!(to_alloc.is_some());
|
||||
assert_eq!(from_inst, to_inst.prev());
|
||||
// N.B.: these moves happen with the *same* priority as
|
||||
// LR-to-LR moves, because they work just like them: they
|
||||
|
||||
Reference in New Issue
Block a user