about summary refs log tree commit diff
path: root/src/test/incremental/hashes
AgeCommit message (Collapse)AuthorLines
2020-07-17Rename TypeckTables to TypeckResults.Valentin Lazureanu-90/+90
2020-07-15mir_built is a lieBastian Kauschke-152/+152
2020-05-24Clear MIR local type annotations after borrowckJonas Schievink-1/+1
2020-04-20const prop: don't special case return placeJonas Schievink-4/+4
2020-03-26Update tests to use llvm_asm!Amanieu d'Antras-73/+73
2020-03-19hir: replace "items" terminology with "nodes" where appropriate.Eduard-Mihai Burtescu-337/+337
2020-03-17Update tests for erasing regions in typeckMatthew Jasper-4/+4
2020-03-14Format function_interfaces.rsJohn Kåre Alsaker-46/+40
2020-03-14Replace `Hir` with `hir_owner` in testsJohn Kåre Alsaker-451/+451
2020-03-14Replace `HirBody` with `hir_owner_items` in testsJohn Kåre Alsaker-337/+337
2019-11-27rustc: move debug info from LocalDecl and UpvarDecl into a dedicated ↵Eduard-Mihai Burtescu-8/+8
VarDebugInfo.
2019-11-11[mir-opt] Turn on the `ConstProp` pass by defaultWesley Wiser-7/+7
perf.rlo shows that running the `ConstProp` pass results in across-the-board wins regardless of debug or opt complilation mode. As a result, we're turning it on to get the compile time benefits. `ConstProp` doesn't currently intern the memory used by its `Machine` so we can't yet propagate allocations which is why `ConstProp::should_const_prop()` checks if the value being propagated is a scalar or not.
2019-11-08[mir-opt] Handle aggregates in SimplifyLocals passWesley Wiser-2/+2
2019-10-20Improve SimplifyLocals pass so it can remove unused constsWesley Wiser-8/+8
The `ConstProp` can cause many locals to be initialized to a constant value and then never read from. `ConstProp` can also evaluate ZSTs into constant values. Previously, many of these would be removed by other parts of the MIR optimization pipeline. However, evaluating ZSTs (especially `()`) into constant values defeated those parts of the optimizer and so in a2e3ed5c054b544df6ceeb9e612d39af819f4aae, I added a hack to `ConstProp` that skips evaluating ZSTs to avoid that regression. This commit changes `SimplifyLocals` so that it doesn't consider writes of const values to a local to be a use of that local. In doing so, `SimplifyLocals` is able to remove otherwise unused locals left behind by other optimization passes (`ConstProp` in particular).
2019-09-14Ban non-extern rust intrinsicsMark Rousskov-15/+2
Intrinsics can only be defined by the compiler.
2019-08-26Auto merge of #63580 - wesleywiser:move_promoted_out, r=oli-obkbors-4/+10
Move promoted MIR out of `mir::Body` r? @oli-obk
2019-08-25Revert "Allow a dirty MirBuilt for make_extern and make_method_extern"Josh Stone-2/+2
This reverts commit b4a6f597934f16f89e27058a32a514c9572f148f.
2019-08-23Fix incremental testsWesley Wiser-4/+10
2019-08-22Changed testsWesley Wiser-1/+1
2019-08-19Cherry-pick src/test changes with Centril's changessd234678-157/+156
2019-07-06while_{let_}loops/change_{break,continue}: typeck_tables_of clean.Mazdak Farrokhzad-4/+4
2019-07-06Adjust incremental test while_loops.rsMazdak Farrokhzad-2/+2
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-26/+26
2019-05-12Change compare mode to use -Zborrowck=mirMatthew Jasper-2/+2
2019-05-10Various test changesMazdak Farrokhzad-2/+2
2019-04-22Remove double trailing newlinesvarkor-1/+0
2019-03-30Update testsJohn Kåre Alsaker-103/+103
2019-03-20Add no_hash to query macro and move some queries overJohn Kåre Alsaker-155/+155
2019-03-18Add load_cached query modifier and keep dep node names consistent with query ↵John Kåre Alsaker-175/+175
names
2019-03-18Define queries using a proc macroJohn Kåre Alsaker-77/+77
2019-02-08Allow a dirty MirBuilt for make_extern and make_method_externJohn Kåre Alsaker-2/+2
2019-02-08Update testsJohn Kåre Alsaker-153/+153
2018-12-30Fix unresolved inference variable ICE.David Wood-1/+1
This commit moves well-formedness check for the `UserTypeAnnotation::Ty(..)` case from always running to only when the code is reachable. This solves the ICE that resulted from `src/test/ui/issue-54943-1.rs` (a minimal repro of `dropck-eyepatch` run-pass tests that failed). The main well-formedness check that was intended to be run despite unreachable code still is, that being the `UserTypeAnnotation::TypeOf(..)` case. Before this PR, the other case wasn't being checked at all. It is possible to fix this ICE while still always checking well-formedness for the `UserTypeAnnotation::Ty(..)` case but that solution will ICE in unreachable code for that case, the diff for that change [can be found here](0). [0]: https://gist.github.com/davidtwco/f9751ffd9c0508f7251c0f17adc3af53
2018-12-25Remove licensesMark Rousskov-284/+0
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-2/+2
2018-10-26Fix tests and assertions; add some commentsNick Cameron-1/+1
2018-10-22fix incremental testNiko Matsakis-1/+1
2018-10-02Improve implicit self mutability suggestions.David Wood-1/+1
This commit adds an `ImplicitSelfKind` to the HIR and the MIR that keeps track of whether a implicit self argument is immutable by-value, mutable by-value, immutable reference or mutable reference so that the addition of the `mut` keyword can be suggested for the immutable by-value case.
2018-09-10fix incremental testNiko Matsakis-1/+1
We are now carrying the user-given type through MIR, so it makes sense that this would change the hash.
2018-06-07Add existential type definitonsOliver Schneider-1/+1
2018-04-13Rename must-compile-successfully into compile-passGuillaume Gomez-26/+26
2018-03-26Stabilize conservative_impl_traitTaylor Cramer-1/+0
2018-03-23Fixed issues with incremental tests.David Wood-1/+1
2018-03-15Stabilize `inclusive_range_syntax` language feature.kennytm-1/+0
Stabilize the syntax `a..=b` and `..=b`.
2018-02-20rustc_mir: always run the deaggregator.Eduard-Mihai Burtescu-1/+1
2018-02-07Fix tests for MIR loop loweringbobtwinkles-1/+1
Fixes the hash test to recognize that MirValidated can change when changing around labels, and add a new test that makes sure we're lowering loop statements correctly.
2018-01-29tests: replace "lvalue" terminology with "place".Eduard-Mihai Burtescu-3/+3
2017-12-30Remove excessive trailing newlines.kennytm-5/+0
2017-12-08incr.comp.: Hash spans unconditionally for full accuracy.Michael Woerister-343/+97
2017-12-05Format function interface fingerprint hash testsJeff Crocker-56/+70