about summary refs log tree commit diff
path: root/src/test/mir-opt/dest-prop
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-663/+0
2022-12-25Remove Nop in simplify_locals.Camille GILLOT-4/+0
It's cheap and does not change anything.
2022-12-16Remove dead code after destination propagationTomasz Miąsko-0/+104
2022-12-09Remove unneeded field from `SwitchTargets`Jakob Degen-1/+1
2022-11-26Rewrite dest prop.Jakob Degen-77/+237
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-26address reviewb-naber-2/+2
2022-08-31Fix a bunch of typoDezhi Wu-1/+1
This PR will fix some typos detected by [typos]. I only picked the ones I was sure were spelling errors to fix, mostly in the comments. [typos]: https://github.com/crate-ci/typos
2022-07-28bless mir opt testsNilstrieb-148/+148
2022-07-09tweak names and output and blessRalf Jung-7/+7
2022-05-24Fix/bless tests broken by DSEJakob Degen-82/+43
2022-05-24Add dead store elimination passJakob Degen-2/+2
2022-04-11Add new `MutatatingUseContext`s for deinit and `SetDiscriminant`Jakob Degen-6/+12
2022-04-11Fix tests broken by deaggregation changeJakob Degen-12/+7
2022-02-27Only create a single expansion for each inline integration.Camille GILLOT-2/+2
2022-02-24Remove an unnecessary restriction in `dest_prop`Jakob Degen-7/+13
2021-09-01Fix drop handling for `if let` expressionsMatthew Jasper-1/+1
MIR lowering for `if let` expressions is now more complicated now that `if let` exists in HIR. This PR adds a scope for the variables bound in an `if let` expression and then uses an approach similar to how we handle loops to ensure that we reliably drop the correct variables.
2021-08-22Fix typos “an”→“a” and a few different ones that appeared in the ↵Frank Steffahn-1/+1
same search
2021-03-16bless testsErik Desjardins-2/+0
2021-03-15bless testsErik Desjardins-6/+6
2021-03-13Extend SimplifyLocals to remove ZST writesSimon Vandel Sillesen-2/+0
2021-03-06Disable destination propagation on all mir-opt-levelsTomasz Miąsko-5/+5
2021-01-07Reintroduce hir::ExprKind::IfCaio-8/+8
2020-10-27Show the inline stack of MIR lints that only occur after inliningOliver Scherer-4/+4
2020-10-21rustc_mir: track inlined callees in SourceScopeData.Eduard-Mihai Burtescu-2/+2
2020-10-17Remove the old copy propagation passJonas Schievink-0/+147
2020-09-25Rollup merge of #77066 - jonas-schievink:dest-prop-borrow, r=oli-obkJonas Schievink-12/+6
Fix dest prop miscompilation around references Closes https://github.com/rust-lang/rust/issues/77002
2020-09-22rebless after rebaseSimon Vandel Sillesen-8/+0
2020-09-22Bless mir-opt testsJonas Schievink-12/+6
2020-09-18Fix dest-prop mir-opt testsJonas Schievink-81/+25
2020-09-18Add a few dest-prop MIR testsJonas Schievink-0/+362