Move domain_size to GenKillAnalysis.
This commit is contained in:
parent
8726cbc75f
commit
934a99eb65
8 changed files with 43 additions and 14 deletions
|
@ -165,7 +165,7 @@ where
|
|||
|
||||
// Otherwise, compute and store the cumulative transfer function for each block.
|
||||
|
||||
let identity = GenKillSet::identity(analysis.bottom_value(body).domain_size());
|
||||
let identity = GenKillSet::identity(analysis.domain_size(body));
|
||||
let mut trans_for_block = IndexVec::from_elem(identity, &body.basic_blocks);
|
||||
|
||||
for (block, block_data) in body.basic_blocks.iter_enumerated() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue