Remove regs from MachineEnv

It isn't exactly clear what purpose it serves.
This commit is contained in:
Amanieu d'Antras
2021-09-16 09:14:07 +01:00
parent af527aca88
commit 358c831b31
3 changed files with 5 additions and 9 deletions

View File

@@ -1139,12 +1139,6 @@ pub enum Edit {
/// as well.
#[derive(Clone, Debug)]
pub struct MachineEnv {
/// Physical registers. Every register that might be mentioned in
/// any constraint must be listed here, even if it is not
/// allocatable (present in one of
/// `{preferred,non_preferred}_regs_by_class`).
pub regs: Vec<PReg>,
/// Preferred physical registers for each class. These are the
/// registers that will be allocated first, if free.
pub preferred_regs_by_class: [Vec<PReg>; 2],