Rollup merge of #51399 - ngg:nll-performance, r=nikomatsakis
NLL performance boost This makes compilation of the [inflate](https://github.com/rust-lang-nursery/rustc-perf/tree/master/collector/benchmarks/inflate) benchmark compile 2 times faster on my computer when NLL is enabled. This does not fix the #51377 perfectly, it's still 4-5 times slower than without NLL, but it's a start.
This commit is contained in:
commit
326331c34f
@ -104,13 +104,15 @@ impl<'gen, 'typeck, 'flow, 'gcx, 'tcx> TypeLivenessGenerator<'gen, 'typeck, 'flo
|
|||||||
location, live_local
|
location, live_local
|
||||||
);
|
);
|
||||||
|
|
||||||
self.flow_inits.each_state_bit(|mpi_init| {
|
if log_enabled!(::log::Level::Debug) {
|
||||||
debug!(
|
self.flow_inits.each_state_bit(|mpi_init| {
|
||||||
"add_liveness_constraints: location={:?} initialized={:?}",
|
debug!(
|
||||||
location,
|
"add_liveness_constraints: location={:?} initialized={:?}",
|
||||||
&self.flow_inits.operator().move_data().move_paths[mpi_init]
|
location,
|
||||||
);
|
&self.flow_inits.operator().move_data().move_paths[mpi_init]
|
||||||
});
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
let mpi = self.move_data.rev_lookup.find_local(live_local);
|
let mpi = self.move_data.rev_lookup.find_local(live_local);
|
||||||
if let Some(initialized_child) = self.flow_inits.has_any_child_of(mpi) {
|
if let Some(initialized_child) = self.flow_inits.has_any_child_of(mpi) {
|
||||||
|
Loading…
Reference in New Issue
Block a user