Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
c5d42b1
Ensure all iterations in Rayon iterators run in the presence of panics
Zoxc Jan 13, 2020
69276ba
Update tests
Zoxc Jan 13, 2020
934abf2
Use $crate
Zoxc Jan 16, 2020
c621cd6
Parallelize type collecting and item-types checking
Zoxc Jan 2, 2020
8c07291
Tweak misc checking 1
Zoxc Jan 2, 2020
bef0c61
Run item-types checking and item-bodies checking in parallel
Zoxc Jan 3, 2020
337d647
Handle panics with `join`
Zoxc Jan 3, 2020
6b67617
Make typeck_item_bodies eval_always
Zoxc Jan 3, 2020
6283565
Make coherence checking parallel
Zoxc Jan 3, 2020
efe44ff
Move privacy_access_levels out of misc checking 3 and run it in paral…
Zoxc Jan 3, 2020
ff125ff
Move some other passes into a parallel block
Zoxc Jan 3, 2020
7a6895f
Make liveness checking more parallel
Zoxc Jan 3, 2020
db0bd38
Prefetch upstream_monomorphizations
Zoxc Jan 3, 2020
171b1bb
Add a new misc checking 3 block
Zoxc Jan 3, 2020
133190b
Prefetch lint_levels and visible_parent_map
Zoxc Jan 4, 2020
f68672b
Fix duplicate test fallout
Zoxc Jan 11, 2020
c7aabbd
Drop `ensure` for privacy_access_levels. Add some comments.
Zoxc Jan 13, 2020
477ad98
Calculate accessor_map in parallel earlier
Zoxc Jan 11, 2020
85fa6a8
Add par_partition
Zoxc Jan 14, 2020
e478795
Parallelize place_root_mono_items
Zoxc Jan 11, 2020
730689e
Estimate CGU cost in place_root_mono_items
Zoxc Jan 12, 2020
1a37f05
Parallelize assert_symbols_are_distinct
Zoxc Jan 12, 2020
20fd50d
Make impl WF inference more parallel
Zoxc Jan 12, 2020
0fdcfe1
Check `Copy` impls in parallel
Zoxc Jan 12, 2020
98d0f7d
Prefetch mir_keys
Zoxc Jan 12, 2020
2bc0d3f
Use a parallel block for coherence checking
Zoxc Jan 12, 2020
9bfdcde
Ensure type checking each function is stealable by other threads
Zoxc Jan 13, 2020
c010632
Tune misc_checking_1
Zoxc Jan 13, 2020
d523356
Run HIR indexing and loading of query results in parallel
Zoxc Jan 9, 2020
0f34dc2
Move check_for_entry_fn and check_unused to a later stage
Zoxc Jan 14, 2020
d788721
Make copy_cgu_workproducts_to_incr_comp_cache_dir parallel
Zoxc Jan 10, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Tune misc_checking_1
  • Loading branch information
Zoxc committed Jan 16, 2020
commit c01063247104b9cef35b932085eff96ce9f77137
18 changes: 15 additions & 3 deletions src/librustc_interface/passes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -785,17 +785,29 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {

sess.time("looking_for_derive_registrar", || proc_macro_decls::find(tcx));
},
{
let _timer = tcx.sess.timer("check_const_bodies");
par_for_each(&tcx.hir().krate().modules, |(&module, _)| {
let local_def_id = tcx.hir().local_def_id(module);
tcx.ensure().check_mod_const_bodies(local_def_id);
});
},
{
let _timer = tcx.sess.timer("check_loops");
par_for_each(&tcx.hir().krate().modules, |(&module, _)| {
let local_def_id = tcx.hir().local_def_id(module);
tcx.ensure().check_mod_loops(local_def_id);
});
},
{
// This is used by the loop below.
// Make sure it is complete before we fan out.
tcx.get_lang_items(LOCAL_CRATE);

let _timer = tcx.sess.timer("misc_module_passes");
let _timer = tcx.sess.timer("check_attrs");
par_for_each(&tcx.hir().krate().modules, |(&module, _)| {
let local_def_id = tcx.hir().local_def_id(module);
tcx.ensure().check_mod_loops(local_def_id);
tcx.ensure().check_mod_attrs(local_def_id);
tcx.ensure().check_mod_const_bodies(local_def_id);
});
},
{
Expand Down