Add EntryRegDiversions to record diversions for each block entry.

This commit is contained in:
Nicolas B. Pierron
2019-08-01 15:06:49 +02:00
committed by Nicolas B. Pierron
parent 9eb1847d80
commit bb87f1a54a
9 changed files with 126 additions and 16 deletions

View File

@@ -51,9 +51,8 @@ impl<'a> LocationVerifier<'a> {
let mut divert = RegDiversions::new();
for ebb in self.func.layout.ebbs() {
// Diversions are reset at the top of each EBB. No diversions can exist across control
// flow edges.
divert.clear();
divert.at_ebb(&self.func.entry_diversions, ebb);
for inst in self.func.layout.ebb_insts(ebb) {
let enc = self.func.encodings[inst];