about summary refs log tree commit diff
path: root/src/test/mir-opt/const_prop/control_flow_simplification.hello.ConstProp.diff
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-32/+0
2022-12-25Remove Nop in simplify_locals.Camille GILLOT-1/+0
It's cheap and does not change anything.
2022-12-09Remove unneeded field from `SwitchTargets`Jakob Degen-2/+2
2022-11-02Ban dashes in miropt test file namesJakob Degen-9/+9
2022-09-14address review againb-naber-2/+1
2022-07-28bless mir opt testsNilstrieb-10/+10
2022-07-09tweak names and output and blessRalf Jung-1/+1
2022-05-23Refactor call terminator to always hold a destination placeJakob Degen-1/+1
2022-05-06bless mir-optRalf Jung-1/+1
2022-02-22change `mir::Constant` in mir dumpslcnr-4/+1
2021-09-01Fix drop handling for `if let` expressionsMatthew Jasper-2/+2
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-19Revert "Revert "Auto merge of #83417 - erikdesjardins:enableremovezsts, ↵Erik Desjardins-1/+1
r=oli-obk"" This reverts commit 8e11199a153218c13a419df37a9bb675181cccb7.
2021-08-15Revert "Auto merge of #83417 - erikdesjardins:enableremovezsts, r=oli-obk"Erik Desjardins-1/+1
This reverts commit 8007b506ac5da629f223b755f5a5391edd5f6d01, reversing changes made to e55c13e1099b78b1a485202fabc9c1b10b1f1d15.
2021-08-07Run RemoveZsts at mir-opt-level=1Erik Desjardins-1/+1
Effectively reverts commit 6960bc9696b05b15d8d89ece2fef14e6e62a43fc.
2021-05-17mir-opt bless for Size field being removed from AllocationRalf Jung-2/+2
2021-01-25Implement new panic!() behaviour for Rust 2021.Mara Bos-5/+5
2021-01-07Reintroduce hir::ExprKind::IfCaio-8/+8
2020-12-03Combination of commitsRich Kadel-1/+1
Fixes multiple issue with counters, with simplification Includes a change to the implicit else span in ast_lowering, so coverage of the implicit else no longer spans the `then` block. Adds coverage for unused closures and async function bodies. Fixes: #78542 Adding unreachable regions for known MIR missing from coverage map Cleaned up PR commits, and removed link-dead-code requirement and tests Coverage no longer depends on Issue #76038 (`-C link-dead-code` is no longer needed or enforced, so MSVC can use the same tests as Linux and MacOS now) Restrict adding unreachable regions to covered files Improved the code that adds coverage for uncalled functions (with MIR but not-codegenned) to avoid generating coverage in files not already included in the files with covered functions. Resolved last known issue requiring --emit llvm-ir workaround Fixed bugs in how unreachable code spans were added.
2020-09-02pretty: trim paths of unique symbolsDan Aloni-1/+1
If a symbol name can only be imported from one place for a type, and as long as it was not glob-imported anywhere in the current crate, we can trim its printed path and print only the name. This has wide implications on error messages with types, for example, shortening `std::vec::Vec` to just `Vec`, as long as there is no other `Vec` importable anywhere. This adds a new '-Z trim-diagnostic-paths=false' option to control this feature. On the good path, with no diagnosis printed, we should try to avoid issuing this query, so we need to prevent trimmed_def_paths query on several cases. This change also relies on a previous commit that differentiates between `Debug` and `Display` on various rustc types, where the latter is trimmed and presented to the user and the former is not.
2020-08-21Suppress "const" prefix of FnDef in MIR dumpLzu Tao-1/+1
2020-08-20Suppress MIR comments of Unit typeLzu Tao-6/+0
2020-08-20Suppress MIR comments for FnDef in ty::ConstLzu Tao-3/+0
2020-08-17Update MIR tests with comment verbosity fixAustin Lasher-15/+1
2020-07-29Move mir-opt tests to toplevelXavier Denis-0/+60