|
1 |
| -use rustc_index::bit_set::{BitSet, ChunkedBitSet}; |
| 1 | +use rustc_index::bit_set::BitSet; |
2 | 2 | use rustc_middle::mir::visit::{MutatingUseContext, NonMutatingUseContext, PlaceContext, Visitor};
|
3 | 3 | use rustc_middle::mir::{
|
4 | 4 | self, CallReturnPlaces, Local, Location, Place, StatementKind, TerminatorEdges,
|
@@ -27,14 +27,14 @@ use crate::{Analysis, AnalysisDomain, Backward, GenKill, GenKillAnalysis};
|
27 | 27 | pub struct MaybeLiveLocals;
|
28 | 28 |
|
29 | 29 | impl<'tcx> AnalysisDomain<'tcx> for MaybeLiveLocals {
|
30 |
| - type Domain = ChunkedBitSet<Local>; |
| 30 | + type Domain = BitSet<Local>; |
31 | 31 | type Direction = Backward;
|
32 | 32 |
|
33 | 33 | const NAME: &'static str = "liveness";
|
34 | 34 |
|
35 | 35 | fn bottom_value(&self, body: &mir::Body<'tcx>) -> Self::Domain {
|
36 | 36 | // bottom = not live
|
37 |
| - ChunkedBitSet::new_empty(body.local_decls.len()) |
| 37 | + BitSet::new_empty(body.local_decls.len()) |
38 | 38 | }
|
39 | 39 |
|
40 | 40 | fn initialize_start_block(&self, _: &mir::Body<'tcx>, _: &mut Self::Domain) {
|
@@ -234,14 +234,14 @@ impl<'a> MaybeTransitiveLiveLocals<'a> {
|
234 | 234 | }
|
235 | 235 |
|
236 | 236 | impl<'a, 'tcx> AnalysisDomain<'tcx> for MaybeTransitiveLiveLocals<'a> {
|
237 |
| - type Domain = ChunkedBitSet<Local>; |
| 237 | + type Domain = BitSet<Local>; |
238 | 238 | type Direction = Backward;
|
239 | 239 |
|
240 | 240 | const NAME: &'static str = "transitive liveness";
|
241 | 241 |
|
242 | 242 | fn bottom_value(&self, body: &mir::Body<'tcx>) -> Self::Domain {
|
243 | 243 | // bottom = not live
|
244 |
| - ChunkedBitSet::new_empty(body.local_decls.len()) |
| 244 | + BitSet::new_empty(body.local_decls.len()) |
245 | 245 | }
|
246 | 246 |
|
247 | 247 | fn initialize_start_block(&self, _: &mir::Body<'tcx>, _: &mut Self::Domain) {
|
|
0 commit comments