about summary refs log tree commit diff
path: root/src/librustc/dep_graph/graph.rs
AgeCommit message (Collapse)AuthorLines
2020-03-23Move dep_graph to new crate librustc_query_system.Camille GILLOT-1196/+0
2020-03-23Rollup merge of #70269 - matthiaskrgr:clippy_closures, r=Dylan-DPCMazdak Farrokhzad-1/+1
remove redundant closures (clippy::redundant_closure)
2020-03-22Auto merge of #69778 - Marwes:dep_graph, r=davidtwcobors-11/+24
perf(dep_graph): Avoid allocating a set on when the number reads are … …small `reserve_and_rehash` takes up 1.4% of the runtime on the `packed-simd` benchmark which I believe is due to the number of reads are very low in many cases (see https://github.com/rust-lang/rust/pull/50565 for instance). This avoids allocating the set until we start allocating the `reads` `SmallVec` but it is possible that a lower limit might be better (not tested since the improvement will be hard to spot either way).
2020-03-22remove redundant closures (clippy::redundant_closure)Matthias Krüger-1/+1
2020-03-19hir: replace "items" terminology with "nodes" where appropriate.Eduard-Mihai Burtescu-1/+1
2020-03-19rustc: use LocalDefId instead of DefIndex in HirId.Eduard-Mihai Burtescu-1/+1
2020-03-14Reintroduce workaround for #62649John Kåre Alsaker-8/+15
2020-03-14Remove `input_task`John Kåre Alsaker-22/+0
2020-03-14Remove `Hir` and `HirBody` dep nodesJohn Kåre Alsaker-1/+1
2020-03-12Rollup merge of #69747 - spastorino:rename-rustc-guide, r=pietroalbiniMazdak Farrokhzad-2/+2
Rename rustc guide This is in preparation for https://github.com/rust-lang/rustc-guide/issues/470 Needs to be merged after we actually rename the guide. Have used this to rename: `git grep -l 'rustc_guide' | xargs sed -i 's/rustc_guide/rustc_dev_guide/g'` `git grep -l 'rustc-guide' | xargs sed -i 's/rustc-guide/rustc-dev-guide/g'` `git grep -l 'rustc guide' | xargs sed -i 's/rustc guide/rustc dev guide/g'`
2020-03-10rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.orgSantiago Pastorino-1/+1
2020-03-10Rename rustc guide to rustc dev guideSantiago Pastorino-2/+2
2020-03-10Rename rustc-guide to rustc-dev-guideSantiago Pastorino-1/+1
2020-03-07refactor: Add an alias for the SmallVec in dep_graphMarkus Westerlind-10/+8
2020-03-06perf(dep_graph): Avoid allocating a set on when the number reads are smallMarkus Westerlind-2/+17
`reserve_and_rehash` takes up 1.4% of the runtime on the `packed-simd` benchmark which I believe is due to the number of reads are very low in many cases (see https://github.com/rust-lang/rust/pull/50565 for instance). This avoids allocating the set until we start allocating the `reads` `SmallVec` but it is possible that a lower limit might be better (not tested since the improvement will be hard to spot either way).
2020-03-04cover some more nearby casesRalf Jung-1/+1
2020-02-28use is_empty() instead of len() == x to determine if structs are empty.Matthias Krüger-1/+1
2020-02-19Tune inliningJohn Kåre Alsaker-1/+1
2020-02-19Split query execution into hot and cold pathsJohn Kåre Alsaker-0/+1
2020-01-27Collisions in the dep-graph due to path-reuse are rare but can occur.Felix S. Klock II-9/+30
So, instead of ICE'ing, just fail to mark green in such cases (for `DepKind::{Hir, HirBody, CrateMetadata}`). Fix #62649.
2020-01-11Rollup merge of #68050 - Centril:canon-error, r=Mark-SimulacrumYuki Okushi-1/+1
Canonicalize rustc_error imports r? @Mark-Simulacrum
2020-01-10Run 'x.py fmt'.Michael Woerister-8/+4
2020-01-10Initial support for recording query keys in self-profiling data.Michael Woerister-1/+1
2020-01-10Use 'relaxed' memory ordering for simple atomic counters in dep-graph.Michael Woerister-4/+4
2020-01-10self-profile: Switch to new approach for event_id generation that enables ↵Michael Woerister-3/+27
query-invocation-specific event_ids.
2020-01-10nix syntax::errors & prefer rustc_errors over errorsMazdak Farrokhzad-1/+1
2019-12-22Format the worldMark Rousskov-214/+207
2019-12-17Revert "Auto merge of #67362 - Mark-Simulacrum:par-4-default, r=alexcrichton"Mark Rousskov-7/+7
This reverts commit 3ed3b8bb7b100afecf7d5f52eafbb70fec27f537, reversing changes made to 99b89533d4cdf7682ea4054ad0ee36c351d05df1. We will reland a similar patch at a future date but for now we should get a nightly released in a few hours with the parallel patch, so this should be reverted to make sure that the next nightly is not parallel-enabled.
2019-12-17Move AtomicU64 usage to AtomicUsizeMark Rousskov-7/+7
2019-12-06Make try_mark_previous_green aware of cycles.Alex Aktsipetrov-5/+16
2019-10-21Remove many unnecessary trait derivations.Nicholas Nethercote-1/+1
2019-10-17Use a sharded dep node to dep node index mapJohn Kåre Alsaker-8/+21
2019-10-14Use more fine grained locks for the dep graphJohn Kåre Alsaker-60/+72
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-09-29remove indexed_vec re-export from rustc_data_structurescsmoe-2/+2
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-17Privatize DiagnosticBuilder constructorsMark Rousskov-2/+2
2019-07-11Refactor diagnostic emission for green nodesJohn Kåre Alsaker-35/+51
2019-07-03Remove needless lifetimesJeremy Stucki-1/+1
2019-06-30Clean up query cache codeJohn Kåre Alsaker-24/+13
2019-06-14Unify all uses of 'gcx and 'tcx.Eduard-Mihai Burtescu-5/+5
2019-06-12Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-4/+3
2019-06-12rustc: replace `TyCtxt<'tcx, 'gcx, 'tcx>` with `TyCtxt<'gcx, 'tcx>`.Eduard-Mihai Burtescu-5/+5
2019-06-12Fix fallout from `deny(unused_lifetimes)`.Eduard-Mihai Burtescu-1/+1
2019-06-12rustc: replace `TyCtxt<'a, 'gcx, 'tcx>` with `TyCtxt<'tcx, 'gcx, 'tcx>`.Eduard-Mihai Burtescu-3/+3