@@ -22,11 +22,10 @@ crate struct RegionValueElements {
22
22
/// For each basic block, how many points are contained within?
23
23
statements_before_block : IndexVec < BasicBlock , usize > ,
24
24
num_points : usize ,
25
- num_universal_regions : usize ,
26
25
}
27
26
28
27
impl RegionValueElements {
29
- crate fn new ( mir : & Mir < ' _ > , num_universal_regions : usize ) -> Self {
28
+ crate fn new ( mir : & Mir < ' _ > ) -> Self {
30
29
let mut num_points = 0 ;
31
30
let statements_before_block = mir
32
31
. basic_blocks ( )
@@ -37,11 +36,6 @@ impl RegionValueElements {
37
36
v
38
37
} )
39
38
. collect ( ) ;
40
-
41
- debug ! (
42
- "RegionValueElements(num_universal_regions={:?})" ,
43
- num_universal_regions
44
- ) ;
45
39
debug ! (
46
40
"RegionValueElements: statements_before_block={:#?}" ,
47
41
statements_before_block
@@ -51,7 +45,6 @@ impl RegionValueElements {
51
45
Self {
52
46
statements_before_block,
53
47
num_points,
54
- num_universal_regions,
55
48
}
56
49
}
57
50
@@ -191,11 +184,14 @@ impl<N: Idx> RegionValues<N> {
191
184
/// Creates a new set of "region values" that tracks causal information.
192
185
/// Each of the regions in num_region_variables will be initialized with an
193
186
/// empty set of points and no causal information.
194
- crate fn new ( elements : & Rc < RegionValueElements > ) -> Self {
187
+ crate fn new (
188
+ elements : & Rc < RegionValueElements > ,
189
+ num_universal_regions : usize ,
190
+ ) -> Self {
195
191
Self {
196
192
elements : elements. clone ( ) ,
197
193
points : SparseBitMatrix :: new ( elements. num_points ) ,
198
- free_regions : SparseBitMatrix :: new ( elements . num_universal_regions ) ,
194
+ free_regions : SparseBitMatrix :: new ( num_universal_regions) ,
199
195
}
200
196
}
201
197
0 commit comments