|
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,
|
@@ -26,14 +26,14 @@ use crate::{Analysis, AnalysisDomain, Backward, GenKill, GenKillAnalysis};
|
26 | 26 | pub struct MaybeLiveLocals;
|
27 | 27 |
|
28 | 28 | impl<'tcx> AnalysisDomain<'tcx> for MaybeLiveLocals {
|
29 |
| - type Domain = ChunkedBitSet<Local>; |
| 29 | + type Domain = BitSet<Local>; |
30 | 30 | type Direction = Backward;
|
31 | 31 |
|
32 | 32 | const NAME: &'static str = "liveness";
|
33 | 33 |
|
34 | 34 | fn bottom_value(&self, body: &mir::Body<'tcx>) -> Self::Domain {
|
35 | 35 | // bottom = not live
|
36 |
| - ChunkedBitSet::new_empty(body.local_decls.len()) |
| 36 | + BitSet::new_empty(body.local_decls.len()) |
37 | 37 | }
|
38 | 38 |
|
39 | 39 | fn initialize_start_block(&self, _: &mir::Body<'tcx>, _: &mut Self::Domain) {
|
@@ -233,14 +233,14 @@ impl<'a> MaybeTransitiveLiveLocals<'a> {
|
233 | 233 | }
|
234 | 234 |
|
235 | 235 | impl<'a, 'tcx> AnalysisDomain<'tcx> for MaybeTransitiveLiveLocals<'a> {
|
236 |
| - type Domain = ChunkedBitSet<Local>; |
| 236 | + type Domain = BitSet<Local>; |
237 | 237 | type Direction = Backward;
|
238 | 238 |
|
239 | 239 | const NAME: &'static str = "transitive liveness";
|
240 | 240 |
|
241 | 241 | fn bottom_value(&self, body: &mir::Body<'tcx>) -> Self::Domain {
|
242 | 242 | // bottom = not live
|
243 |
| - ChunkedBitSet::new_empty(body.local_decls.len()) |
| 243 | + BitSet::new_empty(body.local_decls.len()) |
244 | 244 | }
|
245 | 245 |
|
246 | 246 | fn initialize_start_block(&self, _: &mir::Body<'tcx>, _: &mut Self::Domain) {
|
|
0 commit comments