about summary refs log tree commit diff
path: root/tests/mir-opt/issues
AgeCommit message (Collapse)AuthorLines
2025-07-25Update mir-opt expected output for matches! macroJonas Platte-8/+16
2025-04-21mir-opt: execute MatchBranchSimplification after GVNdianqk-17/+7
This can provide more opportunities for MatchBranchSimplification.
2025-03-03Inline FnOnce once againMichael Goulet-0/+138
2025-01-04Add FileCheck annotations to mir-opt/issuesShunpoco-1/+5
From #123067, this test should ensure that there is no duplicated basic block against or-patterns. Signed-off-by: Shunpoco <tkngsnsk313320@gmail.com>
2024-12-27MatchBranchSimplification: Consider empty-unreachable otherwise branchclubby789-20/+18
2024-10-19Emit error on `skip-filecheck` test containing filecheck directivesclubby789-1/+0
2024-08-18Bless *all* the mir-opt testsScott McMurray-8/+8
2024-06-03rustfmt `tests/mir-opt`.Nicholas Nethercote-5/+1
The only non-obvious changes: - `building/storage_live_dead_in_statics.rs` has a `#[rustfmt::skip]` attribute to avoid reformating a table of data. - Two `.mir` files have slight changes involving line numbers. - In `unusual_item_types.rs` an `EMIT_MIR` annotation is moved to outside a function, which is the usual spot, because `tidy` complains if such a comment is indented. The commit also tweaks the comments in `rustfmt.toml`.
2024-04-18At debuginfo=0, don't inline debuginfo when inliningScott McMurray-50/+30
2024-04-03Remove MIR unsafe checkMatthew Jasper-5/+1
This also remove safety information from MIR.
2024-03-25Consistently merge simplifiable or-patternsNadrieril-18/+8
2024-03-07Get all variants to eliminate the default branching if we cannot get the ↵DianQK-20/+24
layout of type
2024-02-22[AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives许杰友 Jieyou Xu (Joe)-2/+2
2024-01-14Split out `option::unwrap_failed` like we have `result::unwrap_failed`Scott McMurray-2/+2
...and like `option::expect_failed`
2023-10-19Allow to run filecheck in mir-opt tests.Camille GILLOT-0/+2
2023-10-06Preserve DebugInfo in DeadStoreElimination.Camille GILLOT-44/+46
2023-10-04Remove mir::LocalDecl::internal.Camille GILLOT-0/+10
2023-08-17Revert "Implement references VarDebugInfo."Camille GILLOT-2/+8
This reverts commit 2ec007191348ef7cc13eb55e44e007b02cf75cf3.
2023-07-19Turn copy into moves during DSE.Camille GILLOT-2/+2
2023-07-10Enable by default.Camille GILLOT-38/+30
2023-06-23Bless testsGary Guo-3/+3
2023-06-15Remove comments from mir-opt MIR dumpsBen Kimock-132/+108
2023-06-12bless mir-optPietro Albini-0/+84
To reproduce the changes in this commit locally: - Run `./x test tidy` and remove all the output files not associated with a test file anymore, as reported by tidy. - Run `./x test tests/mir-opt --bless` to generate the new outputs.
2023-06-12properly mark tests that require panic=abortPietro Albini-1/+1
2023-05-21Normalize block and local orders in mir-opt testsScott McMurray-31/+31
Since this only affects `PreCodegen MIR, and it would be nice for that to be resilient to permutations of things that don't affect the actual semantic behaviours.
2023-04-22Turn on ConstDebugInfo pass.Wesley Wiser-19/+16
2023-04-06Ignore many tests on wasm32Gary Guo-3/+4
2023-03-22Add `CastKind::Transmute` to MIRScott McMurray-30/+18
Updates `interpret`, `codegen_ssa`, and `codegen_cranelift` to consume the new cast instead of the intrinsic. Includes `CastTransmute` for custom MIR building, to be able to test the extra UB.
2023-03-13Generalize operation.Camille GILLOT-1/+0
2023-02-12Enable CopyProp by default, tune the impl a bitBen Kimock-9/+5
2023-02-02Stop deaggregating enums in MIR.Camille GILLOT-5/+2
2023-01-12Fix mir-opt tests for big-endian platformsUlrich Weigand-2/+3
The test cases src/test/mir-opt/building/custom/consts.rs and src/test/mir-opt/const_prop/mutable_variable_no_prop.rs are currently failing on big-endian platforms as the binary encoding of some constants is hard-coded in the MIR test files. Fix this by choosing constant values that have the same encoding on big- and little-endian platforms. The test case src/test/mir-opt/issues/issue_75439.rs is failing as well, but since the purpose of the test is to validate handling of big-endian integer encodings on a little-endian platform, it does not make much sense to run it on big-endian platforms in the first place - we can just ignore it there. Fixed part of https://github.com/rust-lang/rust/issues/105383.
2023-01-11Move /src/test to /testsAlbert Larsan-0/+218