Skip to content

Commit

Permalink
region_infer: BitMatrix representation of region values
Browse files Browse the repository at this point in the history
This should be more efficient than allocating two BTreeSets for every
region variable?—as it is written in rust-lang#45670.
  • Loading branch information
zackmdavis authored and nikomatsakis committed Dec 1, 2017
1 parent 4e482df commit 9546993
Show file tree
Hide file tree
Showing 2 changed files with 184 additions and 154 deletions.
2 changes: 1 addition & 1 deletion src/librustc_mir/borrow_check/nll/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ fn dump_mir_results<'a, 'gcx, 'tcx>(
match pass_where {
// Before the CFG, dump out the values for each region variable.
PassWhere::BeforeCFG => for region in regioncx.regions() {
writeln!(out, "| {:?}: {:?}", region, regioncx.region_value(region))?;
writeln!(out, "| {:?}: {}", region, regioncx.region_value_str(region))?;
},

// Before each basic block, dump out the values
Expand Down
Loading

0 comments on commit 9546993

Please sign in to comment.