about summary refs log tree commit diff
path: root/src/test/mir-opt/simplify_cfg.main.SimplifyCfg-initial.diff
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-71/+0
2022-12-09Remove unneeded field from `SwitchTargets`Jakob Degen-1/+1
2022-07-28bless mir opt testsNilstrieb-25/+25
2022-07-09tweak names and output and blessRalf Jung-1/+1
2021-09-18./x.py test --blessTomasz Miąsko-17/+12
2021-09-01Fix drop handling for `if let` expressionsMatthew Jasper-11/+15
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-03Make simplify_cfg test more consistentAlex Crichton-27/+27
Force it to always use panic=abort which means that all targets should produce the same MIR now.
2021-01-07Reintroduce hir::ExprKind::IfCaio-30/+24
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-10-04Bless mir-opt testsAaron Hill-37/+29
2020-08-21Suppress "const" prefix of FnDef in MIR dumpLzu Tao-2/+2
2020-08-20Suppress MIR comments of Unit typeLzu Tao-12/+0
2020-08-20Suppress MIR comments for FnDef in ty::ConstLzu Tao-3/+0
2020-07-29Move mir-opt tests to toplevelXavier Denis-0/+101