about summary refs log tree commit diff
path: root/src/librustc/dep_graph
AgeCommit message (Collapse)AuthorLines
2020-02-19Split query execution into hot and cold pathsJohn Kåre Alsaker-0/+1
2020-02-06Move the `krate` method to Hir and remove the Krate dep nodeJohn Kåre Alsaker-14/+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-14perf: eagerly convert literals to consts, this avoids creating loads on ↵Ben Lewis-1/+1
unevaluated consts which requires a lot of unnecessary work to evaluate them further down the line.
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
2020-01-06Improve hygiene of `newtype_index`Matthew Jasper-1/+1
Also add unit tests
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-6/+7
2020-01-04remove DefId::to_dep_node (dead code)Mazdak Farrokhzad-6/+0
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-1/+1
2019-12-22Format the worldMark Rousskov-329/+290
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-07Rollup merge of #66846 - gizmondo:master, r=michaelwoeristerYuki Okushi-5/+16
Make try_mark_previous_green aware of cycles. Fixes #61323 r? @michaelwoerister
2019-12-06Make try_mark_previous_green aware of cycles.Alex Aktsipetrov-5/+16
2019-12-03Move cgu_reuse_tracker to librustc_sessionMark Rousskov-135/+0
2019-12-03Decouple CguReuseTracker from SessionMark Rousskov-4/+3
2019-11-19More HashStable.Camille GILLOT-5/+1
2019-11-02Convert `x.as_str().to_string()` to `x.to_string()` where possible.Nicholas Nethercote-1/+1
2019-10-23Rollup merge of #65657 - nnethercote:rm-InternedString-properly, r=eddybMazdak Farrokhzad-2/+2
Remove `InternedString` This PR removes `InternedString` by converting all occurrences to `Symbol`. There are a handful of places that need to use the symbol chars instead of the symbol index, e.g. for stable sorting; local conversions `LocalInternedString` is used in those places. r? @eddyb
2019-10-21Remove many unnecessary trait derivations.Nicholas Nethercote-1/+1
2019-10-21Use `Symbol` for codegen unit names.Nicholas Nethercote-2/+2
This is a straightforward replacement except for two places where we have to convert to `LocalInternedString` to get a stable sort.
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-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