@@ -144,7 +144,7 @@ where
144
144
// gen/kill problems on cyclic CFGs. This is not ideal, but it doesn't seem to degrade
145
145
// performance in practice. I've tried a few ways to avoid this, but they have downsides. See
146
146
// the message for the commit that added this FIXME for more information.
147
- apply_trans_for_block : Option < Box < dyn Fn ( BasicBlock , & mut A :: Domain ) > > ,
147
+ apply_statement_trans_for_block : Option < Box < dyn Fn ( BasicBlock , & mut A :: Domain ) > > ,
148
148
}
149
149
150
150
impl < ' a , ' tcx , A , D , T > Engine < ' a , ' tcx , A >
@@ -170,7 +170,12 @@ where
170
170
171
171
for ( block, block_data) in body. basic_blocks . iter_enumerated ( ) {
172
172
let trans = & mut trans_for_block[ block] ;
173
- A :: Direction :: gen_kill_effects_in_block ( & mut analysis, trans, block, block_data) ;
173
+ A :: Direction :: gen_kill_statement_effects_in_block (
174
+ & mut analysis,
175
+ trans,
176
+ block,
177
+ block_data,
178
+ ) ;
174
179
}
175
180
176
181
let apply_trans = Box :: new ( move |bb : BasicBlock , state : & mut A :: Domain | {
@@ -199,7 +204,7 @@ where
199
204
tcx : TyCtxt < ' tcx > ,
200
205
body : & ' a mir:: Body < ' tcx > ,
201
206
analysis : A ,
202
- apply_trans_for_block : Option < Box < dyn Fn ( BasicBlock , & mut A :: Domain ) > > ,
207
+ apply_statement_trans_for_block : Option < Box < dyn Fn ( BasicBlock , & mut A :: Domain ) > > ,
203
208
) -> Self {
204
209
let mut entry_sets =
205
210
IndexVec :: from_fn_n ( |_| analysis. bottom_value ( body) , body. basic_blocks . len ( ) ) ;
@@ -210,7 +215,7 @@ where
210
215
bug ! ( "`initialize_start_block` is not yet supported for backward dataflow analyses" ) ;
211
216
}
212
217
213
- Engine { analysis, tcx, body, pass_name : None , entry_sets, apply_trans_for_block }
218
+ Engine { analysis, tcx, body, pass_name : None , entry_sets, apply_statement_trans_for_block }
214
219
}
215
220
216
221
/// Adds an identifier to the graphviz output for this particular run of a dataflow analysis.
@@ -232,7 +237,7 @@ where
232
237
body,
233
238
mut entry_sets,
234
239
tcx,
235
- apply_trans_for_block ,
240
+ apply_statement_trans_for_block ,
236
241
pass_name,
237
242
..
238
243
} = self ;
@@ -269,7 +274,7 @@ where
269
274
& mut state,
270
275
bb,
271
276
bb_data,
272
- apply_trans_for_block . as_deref ( ) ,
277
+ apply_statement_trans_for_block . as_deref ( ) ,
273
278
) ;
274
279
275
280
A :: Direction :: join_state_into_successors_of (
0 commit comments