Bump regalloc2 to 0.5.0 (#5345)

* Bump the regalloc2 dependency to 0.5.0
* Replace preg_set_from_machine_env with PRegSet::from
* Vet the regalloc2 update
This commit is contained in:
Trevor Elliott
2022-11-29 11:25:35 -08:00
committed by GitHub
parent 3b76874834
commit f138fc0ed3
6 changed files with 13 additions and 27 deletions

View File

@@ -25,7 +25,7 @@ use regalloc2::{MachineEnv, PRegSet};
use smallvec::{smallvec, SmallVec};
use std::fmt::Debug;
use super::{preg_set_from_machine_env, VCodeBuildDirection, VRegAllocator};
use super::{VCodeBuildDirection, VRegAllocator};
/// An "instruction color" partitions CLIF instructions by side-effecting ops.
/// All instructions with the same "color" are guaranteed not to be separated by
@@ -417,7 +417,7 @@ impl<'func, I: VCodeInst> Lower<'func, I> {
Ok(Lower {
f,
flags,
allocatable: preg_set_from_machine_env(machine_env),
allocatable: PRegSet::from(machine_env),
vcode,
vregs,
value_regs,