about summary refs log tree commit diff
path: root/src/librustc/dep_graph
AgeCommit message (Collapse)AuthorLines
2019-10-14Auto merge of #65240 - michaelwoerister:sp-review-3, r=Mark-Simulacrumbors-1/+1
self-profiling: Add events for metadata loading (plus a small dep-tracking optimization) This PR - adds self-profiling events related to loading things from crate metadata - makes the compiler cache the `DepNodeIndex` of upstream crates, so that they don't have to be looked up over and over. The commits are best reviewed in isolation. Self-profiling tracking issue: https://github.com/rust-lang/rust/issues/58967 r? @Mark-Simulacrum cc @wesleywiser
2019-10-09Cache the DepNodeIndex of upstream crates in order to avoid multiple locks ↵Michael Woerister-1/+1
and table lookups on each access of crate metadata.
2019-10-09self-profiling: Add events for everything except trait selection.Michael Woerister-0/+2
2019-10-08Rollup merge of #65081 - Mark-Simulacrum:remove-profile-queries, ↵Mazdak Farrokhzad-9/+0
r=michaelwoerister Remove -Zprofile-queries r? @michaelwoerister Per [zulip thread](https://zulip-archive.rust-lang.org/131828tcompiler/57361RemoveZprofilequeries.html).
2019-10-06Remove loaded_from_cache map from DepGraphMark Rousskov-23/+0
It's now unused, even with -Zquery-dep-graph
2019-10-03Remove -Zprofile-queriesMark Rousskov-9/+0
2019-10-02Remove inline annotations from dep_nodeMark Rousskov-22/+18
2019-09-29remove indexed_vec re-export from rustc_data_structurescsmoe-4/+4
2019-09-28Rollup merge of #64794 - Mark-Simulacrum:rm-dep-track-map, r=estebankMazdak Farrokhzad-89/+0
Remove unused DepTrackingMap Deletes some related code (MemoizationMap trait, etc.) I believe this became unused with red/green incremental introduction, but am uncertain.
2019-09-27Remove global_tcx from TyCtxtMark Rousskov-1/+1
The non-global context was removed; there's only one context now. This is a noop method that only serves to confuse readers -- remove it.
2019-09-25Remove unused DepTrackingMapMark Rousskov-89/+0
2019-09-17Privatize DiagnosticBuilder constructorsMark Rousskov-2/+2
2019-07-11Refactor diagnostic emission for green nodesJohn Kåre Alsaker-35/+51
2019-07-04fix a dep_graph doc regarding type_of_itemljedrz-1/+1
2019-07-04rename hir::map::local_def_id to local_def_id_from_node_idljedrz-1/+1
2019-07-03Remove needless lifetimesJeremy Stucki-1/+1
2019-06-30Clean up query cache codeJohn Kåre Alsaker-24/+13
2019-06-25Inform the query system about properties of queries at compile timeJohn Kåre Alsaker-4/+0
2019-06-18rustc: remove unused lifetimes.Eduard-Mihai Burtescu-1/+1
2019-06-18rustc: remove leftover lifetimes with no bounds from where clauses.Eduard-Mihai Burtescu-2/+0
2019-06-18rustc: remove 'x: 'y bounds (except from comments/strings).Eduard-Mihai Burtescu-2/+2
2019-06-14Unify all uses of 'gcx and 'tcx.Eduard-Mihai Burtescu-35/+35
2019-06-12Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-7/+6
2019-06-12rustc: replace `TyCtxt<'tcx, 'gcx, 'tcx>` with `TyCtxt<'gcx, 'tcx>`.Eduard-Mihai Burtescu-26/+26
2019-06-12Fix fallout from `deny(unused_lifetimes)`.Eduard-Mihai Burtescu-2/+2
2019-06-12rustc: replace `TyCtxt<'a, 'gcx, 'tcx>` with `TyCtxt<'tcx, 'gcx, 'tcx>`.Eduard-Mihai Burtescu-25/+25
2019-06-02query-ify const_fieldMark Mansi-0/+1
2019-05-06Only hash dep node indices of deps of anon tasksJohn Kåre Alsaker-12/+9
2019-04-15Reduce the `DepNode` pre-allocation ratio.Nicholas Nethercote-2/+3
A code size of increase of 15% is overly generous. 2% is more realistic. This change reduces peak memory size by 20+ MiB on some workloads.
2019-03-30Move query definitions over to the proc macroJohn Kåre Alsaker-202/+9
2019-03-29rustc(codegen): uncache `def_symbol_name` prefix from `symbol_name`.Eduard-Mihai Burtescu-2/+1
2019-03-28Rollup merge of #59091 - Zoxc:eval_always, r=michaelwoeristerMazdak Farrokhzad-81/+38
Combine input and eval_always query types Hardcoding `Krate` as a dependency of `eval_always` queries doesn't really make sense if we want to use the query system before HIR lowering / hashing. Without that hardcoding they become pretty much identical to `input` queries, so I combined them to a single type. This will regress the `clean` incremental scenario, but that isn't terribly common. r? @michaelwoerister
2019-03-27Rollup merge of #57293 - Zoxc:incr-passes3, r=michaelwoeristerJosh Stone-0/+1
Make some lints incremental Blocked on https://github.com/rust-lang/rust/pull/57253 r? @michaelwoerister
2019-03-26Make crate_variances a regular queryJohn Kåre Alsaker-1/+1
2019-03-26Combine input and eval_always query typesJohn Kåre Alsaker-80/+37
2019-03-25Make some lints incrementalJohn Kåre Alsaker-0/+1
2019-03-20Add eval_always to query macro and move a query overJohn Kåre Alsaker-1/+0
2019-03-20Add anon to query macro and move a query overJohn Kåre Alsaker-8/+0
2019-03-20Add no_force to query macro and move some queries overJohn Kåre Alsaker-4/+0
2019-03-20Add no_hash to query macro and move some queries overJohn Kåre Alsaker-6/+0
2019-03-18Add load_cached query modifier and keep dep node names consistent with query ↵John Kåre Alsaker-2/+0
names
2019-03-18Define queries using a proc macroJohn Kåre Alsaker-6/+19
2019-03-15rustc: rename item_path to def_path (except the module in ty).Eduard-Mihai Burtescu-2/+2
2019-03-06Rename check_privacy to check_private_in_publicJohn Kåre Alsaker-1/+1
2019-03-06Split up privacy checking so privacy_access_levels only does computations ↵John Kåre Alsaker-0/+1
required for AccessLevels
2019-02-28Introduce rustc_interface and move some methods thereJohn Kåre Alsaker-0/+1
2019-02-26replace &'tcx Substs with SubstsRefcsmoe-2/+2
2019-02-24Use ? in some macrosTaiki Endo-1/+1
2019-02-14Rollup merge of #58365 - Zoxc:task-status, r=michaelwoeristerMazdak Farrokhzad-0/+15
Add an option to print the status of incremental tasks / dep nodes after running them r? @michaelwoerister
2019-02-13Rollup merge of #58273 - taiki-e:rename-dependency, r=matthewjasperMazdak Farrokhzad-1/+1
Rename rustc_errors dependency in rust 2018 crates I think this is a better solution than `use rustc_errors as errors` in `lib.rs` and `use crate::errors` in modules. Related: rust-lang/cargo#5653 cc #58099 r? @Centril