| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-03-09 | Introduce a no-op PlaceMention statement for `let _ =`. | Camille GILLOT | -0/+2 | |
| 2023-03-07 | Remove DropAndReplace terminator | Giacomo Pasini | -4/+1 | |
| PR 107844 made DropAndReplace unused, let's remove it completely from the codebase. | ||||
| 2023-02-16 | Replace some `then`s with some `then_some`s | Maybe Waffle | -1/+1 | |
| 2023-02-16 | `if $c:expr { Some($r:expr) } else { None }` =>> `$c.then(|| $r)` | Maybe Waffle | -7/+1 | |
| 2023-02-06 | Only exclude locals if the place is not indirect. | Camille GILLOT | -1/+3 | |
| 2023-01-23 | Create stable metric to measure long computation in Const Eval | Bryan Garza | -0/+2 | |
| This patch adds a `MirPass` that tracks the number of back-edges and function calls in the CFG, adds a new MIR instruction to increment a counter every time they are encountered during Const Eval, and emit a warning if a configured limit is breached. | ||||
| 2023-01-17 | Remove double spaces after dots in comments | Maybe Waffle | -1/+1 | |
| 2022-12-20 | rustc: Remove needless lifetimes | Jeremy Stucki | -2/+2 | |
| 2022-12-13 | Don't require owned data in `MaybeStorageLive` | Jakob Degen | -6/+7 | |
| 2022-11-26 | Rewrite dest prop. | Jakob Degen | -124/+0 | |
| This fixes a number of correctness issues from the previous version. Additionally, we use a new strategy which has much better performance charactersitics and also finds more opportunities to apply the optimization. | ||||
| 2022-09-06 | Generalize the Assume intrinsic statement to a general Intrinsic statement | Oli Scherer | -4/+2 | |
| 2022-09-06 | Lower the assume intrinsic to a MIR statement | Oli Scherer | -0/+2 | |
| 2022-08-25 | Add method that applies DefUse effect | Tomasz Miąsko | -15/+11 | |
| 2022-08-25 | Fix liveness analysis for yield terminators | Tomasz Miąsko | -32/+61 | |
| A resume place is evaluated and assigned to only after a yield terminator resumes. Ensure that locals used when evaluating the resume place are live across the yield. | ||||
| 2022-08-01 | Remove redundant `TransferWrapper` struct | Tomasz Miąsko | -14/+2 | |
| 2022-07-13 | Rename `debugging_opts` to `unstable_opts` | Joshua Nelson | -4/+4 | |
| This is no longer used only for debugging options (e.g. `-Zoutput-width`, `-Zallow-features`). Rename it to be more clear. | ||||
| 2022-07-12 | add new rval, pull deref early | ouz-a | -1/+2 | |
| 2022-07-06 | Fix missing word in comment | pierwill | -1/+1 | |
| 2022-07-01 | cleanup mir visitor for `rustc::pass_by_value` | lcnr | -5/+5 | |
| 2022-06-17 | Auto merge of #97863 - JakobDegen:bitset-choice, r=nnethercote | bors | -2/+2 | |
| `BitSet` related perf improvements This commit makes two changes: 1. Changes `MaybeLiveLocals` to use `ChunkedBitSet` 2. Overrides the `fold` method for the iterator for `ChunkedBitSet` I have local benchmarks verifying that each of these changes individually yield significant perf improvements to #96451 . I'm hoping this will be true outside of that context too. If that is not the case, I'll try to gate things on where they help as needed r? `@nnethercote` who I believe was working on closely related things, cc `@tmiasko` because of the destprop pr | ||||
| 2022-06-14 | `BitSet` perf improvements | Jakob Degen | -2/+2 | |
| This commit makes two changes: 1. Changes `MaybeLiveLocals` to use `ChunkedBitSet` 2. Overrides the `fold` method for the iterator for `ChunkedBitSet` | ||||
| 2022-06-12 | Merge arms in borrowed locals transfer function | Tomasz Miąsko | -7/+1 | |
| 2022-06-12 | Remove duplicated implementations of borrowed locals analysis | Tomasz Miąsko | -0/+21 | |
| 2022-06-08 | Rollup merge of #97597 - tmiasko:simplify-locals-side-effects, ↵ | Dylan DPC | -6/+3 | |
| r=RalfJung,JakobDegen Preserve unused pointer to address casts Fixes #97421. cc `@RalfJung` | ||||
| 2022-06-07 | Preserve unused pointer to address casts | Tomasz Miąsko | -6/+3 | |
| 2022-06-07 | Remove `AlwaysLiveLocals` wrapper struct | Tomasz Miąsko | -3/+2 | |
| It is just a wrapper around a `BitSet` and doesn't have any functionality of its own. | ||||
| 2022-05-31 | Add a pointer to address cast kind | Tomasz Miąsko | -15/+8 | |
| A pointer to address cast are often special-cased. Introduce a dedicated cast kind to make them easy distinguishable. | ||||
| 2022-05-24 | Add dead store elimination pass | Jakob Degen | -22/+161 | |
| 2022-05-23 | Refactor call terminator to always hold a destination place | Jakob Degen | -8/+6 | |
| 2022-05-02 | fix most compiler/ doctests | Elliot Roberts | -36/+36 | |
| 2022-04-11 | Add new `MutatatingUseContext`s for deinit and `SetDiscriminant` | Jakob Degen | -25/+14 | |
| 2022-04-11 | Add new `Deinit` statement kind | Jakob Degen | -1/+2 | |
| 2022-03-30 | Spellchecking compiler comments | Yuri Astrakhan | -2/+2 | |
| This PR cleans up the rest of the spelling mistakes in the compiler comments. This PR does not change any literal or code spelling issues. | ||||
| 2022-03-11 | Improve `AdtDef` interning. | Nicholas Nethercote | -3/+3 | |
| This commit makes `AdtDef` use `Interned`. Much the commit is tedious changes to introduce getter functions. The interesting changes are in `compiler/rustc_middle/src/ty/adt.rs`. | ||||
| 2022-02-26 | Rollup merge of #94087 - tmiasko:rm-ignore-borrow-on-drop, r=jackh726 | Matthias Krüger | -34/+11 | |
| Remove unused `unsound_ignore_borrow_on_drop` | ||||
| 2022-02-26 | Rollup merge of #93870 - tmiasko:const-precise-live-drops-with-coverage, ↵ | Matthias Krüger | -15/+18 | |
| r=ecstatic-morse Fix switch on discriminant detection in a presence of coverage counters Fixes #93848. r? ``@ecstatic-morse`` | ||||
| 2022-02-23 | Introduce `ChunkedBitSet` and use it for some dataflow analyses. | Nicholas Nethercote | -7/+7 | |
| This reduces peak memory usage significantly for some programs with very large functions, such as: - `keccak`, `unicode_normalization`, and `match-stress-enum`, from the `rustc-perf` benchmark suite; - `http-0.2.6` from crates.io. The new type is used in the analyses where the bitsets can get huge (e.g. 10s of thousands of bits): `MaybeInitializedPlaces`, `MaybeUninitializedPlaces`, and `EverInitializedPlaces`. Some refactoring was required in `rustc_mir_dataflow`. All existing analysis domains are either `BitSet` or a trivial wrapper around `BitSet`, and access in a few places is done via `Borrow<BitSet>` or `BorrowMut<BitSet>`. Now that some of these domains are `ClusterBitSet`, that no longer works. So this commit replaces the `Borrow`/`BorrowMut` usage with a new trait `BitSetExt` containing the needed bitset operations. The impls just forward these to the underlying bitset type. This required fiddling with trait bounds in a few places. The commit also: - Moves `static_assert_size` from `rustc_data_structures` to `rustc_index` so it can be used in the latter; the former now re-exports it so existing users are unaffected. - Factors out some common "clear excess bits in the final word" functionality in `bit_set.rs`. - Uses `fill` in a few places instead of loops. | ||||
| 2022-02-19 | Adopt let else in more places | est31 | -12/+8 | |
| 2022-02-17 | Remove unused `unsound_ignore_borrow_on_drop` | Tomasz Miąsko | -34/+11 | |
| 2022-02-10 | Fix switch on discriminant detection in a presence of coverage counters | Tomasz Miąsko | -15/+18 | |
| 2022-01-12 | Remove deprecated LLVM-style inline assembly | Tomasz Miąsko | -6/+0 | |
| 2021-12-16 | Remove `in_band_lifetimes` from `rustc_mir_dataflow` | LegionMammal978 | -12/+12 | |
| See #91867 for more information. | ||||
| 2021-12-03 | Add initial AST and MIR support for unwinding from inline assembly | Amanieu d'Antras | -75/+77 | |
| 2021-11-13 | Mark mutably borrowed places as maybe initialized | Dylan MacKenzie | -6/+67 | |
| 2021-11-03 | Remove `MaybeMutBorrowedLocals` | Tomasz Miąsko | -118/+16 | |
| 2021-10-04 | Discuss field-sensitivity and enums in context of `MaybeLiveLocals` | Dylan MacKenzie | -0/+31 | |
| 2021-09-28 | More tracing instrumentation | Oli Scherer | -12/+6 | |
| 2021-09-25 | Introduce `Rvalue::ShallowInitBox` | Gary Guo | -0/+1 | |
| 2021-09-07 | Move the dataflow framework to its own crate. | Camille GILLOT | -0/+1570 | |
