Spill live-ins and EBB arguments if there are too many.

This commit is contained in:
Jakob Stoklund Olesen
2017-06-29 14:07:19 -07:00
parent 8c84e2b2aa
commit 3fbcdb4ea6
3 changed files with 67 additions and 2 deletions

View File

@@ -224,6 +224,14 @@ impl Pressure {
e.transient_count = 0;
}
}
/// Preserve the transient counts by transferring them to the base counts.
pub fn preserve_transient(&mut self) {
for e in &mut self.toprc {
e.base_count += e.transient_count;
e.transient_count = 0;
}
}
}
impl fmt::Display for Pressure {