Process RequiresStorage
results in pre-order
Reverse post-order requires an allocation.
This commit is contained in:
parent
75d256fc61
commit
21cd1fe0bd
1 changed files with 3 additions and 2 deletions
|
@ -619,8 +619,9 @@ fn compute_storage_conflicts(
|
||||||
local_conflicts: BitMatrix::from_row_n(&ineligible_locals, body.local_decls.len()),
|
local_conflicts: BitMatrix::from_row_n(&ineligible_locals, body.local_decls.len()),
|
||||||
};
|
};
|
||||||
|
|
||||||
// FIXME: Do we need to do this in RPO?
|
// Visit only reachable basic blocks. The exact order is not important.
|
||||||
requires_storage.visit_in_rpo_with(body, &mut visitor);
|
let reachable_blocks = traversal::preorder(body).map(|(bb, _)| bb);
|
||||||
|
requires_storage.visit_with(body, reachable_blocks, &mut visitor);
|
||||||
|
|
||||||
let local_conflicts = visitor.local_conflicts;
|
let local_conflicts = visitor.local_conflicts;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue