Simplify the internal representation of PReg

This commit is contained in:
Amanieu d'Antras
2021-11-28 18:49:47 +00:00
parent 870e4729e1
commit 38ffc479c2
2 changed files with 14 additions and 18 deletions

View File

@@ -99,7 +99,7 @@ impl<'a, F: Function> Env<'a, F> {
pub fn create_pregs_and_vregs(&mut self) {
// Create PRegs from the env.
self.pregs.resize(
PReg::MAX_INDEX,
PReg::NUM_INDEX,
PRegData {
reg: PReg::invalid(),
allocations: LiveRangeSet::new(),