rust/tests/mir-opt
2024-03-30 18:11:41 +01:00
..
building Add FileCheck directives to the new tests. 2024-03-30 18:11:41 +01:00
const_prop MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
copy-prop [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
dataflow-const-prop Auto merge of #122629 - RalfJung:assert-unsafe-precondition, r=saethlin 2024-03-23 21:11:00 +00:00
dead-store-elimination [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
dest-prop [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
inline Eliminate UbCheck for non-standard libraries 2024-03-27 21:02:40 +08:00
instsimplify Eliminate UbCheck for non-standard libraries 2024-03-27 21:02:40 +08:00
issues Consistently merge simplifiable or-patterns 2024-03-25 23:52:17 +01:00
nll [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
pre-codegen Eliminate UbCheck for non-standard libraries 2024-03-27 21:02:40 +08:00
sroa MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
unnamed-fields updating variable names in CHECK 2024-03-12 01:51:52 +05:30
address_of.address_of_reborrow.SimplifyCfg-initial.after.mir
address_of.borrow_and_cast.SimplifyCfg-initial.after.mir
address_of.rs
array_index_is_temporary.main.SimplifyCfg-pre-optimizations.after.panic-abort.mir simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
array_index_is_temporary.main.SimplifyCfg-pre-optimizations.after.panic-unwind.mir simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
array_index_is_temporary.rs simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
asm_unwind_panic_abort.main.AbortUnwindingCalls.after.mir
asm_unwind_panic_abort.rs Remove some only- clauses from mir-opt tests 2024-03-18 10:07:43 -04:00
async_closure_shims.main-{closure#0}-{closure#0}-{closure#0}.coroutine_by_move.0.panic-abort.mir Fix ABI for FnMut/Fn impls for async closures 2024-03-19 16:59:24 -04:00
async_closure_shims.main-{closure#0}-{closure#0}-{closure#0}.coroutine_by_move.0.panic-unwind.mir Fix ABI for FnMut/Fn impls for async closures 2024-03-19 16:59:24 -04:00
async_closure_shims.main-{closure#0}-{closure#0}.coroutine_closure_by_move.0.panic-abort.mir Fix ABI for FnMut/Fn impls for async closures 2024-03-19 16:59:24 -04:00
async_closure_shims.main-{closure#0}-{closure#0}.coroutine_closure_by_move.0.panic-unwind.mir Fix ABI for FnMut/Fn impls for async closures 2024-03-19 16:59:24 -04:00
async_closure_shims.main-{closure#0}-{closure#1}.coroutine_closure_by_ref.0.panic-abort.mir In ConstructCoroutineInClosureShim, pass receiver by ref, not pointer 2024-03-26 12:10:51 -04:00
async_closure_shims.main-{closure#0}-{closure#1}.coroutine_closure_by_ref.0.panic-unwind.mir In ConstructCoroutineInClosureShim, pass receiver by ref, not pointer 2024-03-26 12:10:51 -04:00
async_closure_shims.rs Fix ABI for FnMut/Fn impls for async closures 2024-03-19 16:59:24 -04:00
basic_assignment.main.ElaborateDrops.diff
basic_assignment.main.SimplifyCfg-initial.after.mir
basic_assignment.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
box_expr.main.ElaborateDrops.diff
box_expr.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
byte_slice.main.SimplifyCfg-pre-optimizations.after.mir simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
byte_slice.rs simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
const_allocation2.main.GVN.after.32bit.mir Avoid recording no-op replacements. 2024-01-07 13:54:05 +00:00
const_allocation2.main.GVN.after.64bit.mir Avoid recording no-op replacements. 2024-01-07 13:54:05 +00:00
const_allocation2.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
const_allocation3.main.GVN.after.32bit.mir Avoid recording no-op replacements. 2024-01-07 13:54:05 +00:00
const_allocation3.main.GVN.after.64bit.mir Avoid recording no-op replacements. 2024-01-07 13:54:05 +00:00
const_allocation3.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
const_allocation.main.GVN.after.32bit.mir Avoid recording no-op replacements. 2024-01-07 13:54:05 +00:00
const_allocation.main.GVN.after.64bit.mir Avoid recording no-op replacements. 2024-01-07 13:54:05 +00:00
const_allocation.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
const_debuginfo.main.ConstDebugInfo.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
const_debuginfo.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
const_goto_const_eval_fail.f.JumpThreading.diff Remove ConstGoto and SeparateConstSwitch. 2024-02-09 21:13:53 +00:00
const_goto_const_eval_fail.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
const_promotion_extern_static.BAR-promoted[0].SimplifyCfg-pre-optimizations.after.mir simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
const_promotion_extern_static.BAR.PromoteTemps.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
const_promotion_extern_static.BOP.built.after.mir
const_promotion_extern_static.FOO-promoted[0].SimplifyCfg-pre-optimizations.after.mir simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
const_promotion_extern_static.FOO.PromoteTemps.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
const_promotion_extern_static.rs simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
coroutine_drop_cleanup.main-{closure#0}.coroutine_drop.0.panic-abort.mir Remove coroutine info when building coroutine drop body 2024-01-25 03:26:29 +00:00
coroutine_drop_cleanup.main-{closure#0}.coroutine_drop.0.panic-unwind.mir Remove coroutine info when building coroutine drop body 2024-01-25 03:26:29 +00:00
coroutine_drop_cleanup.rs
coroutine_storage_dead_unwind.main-{closure#0}.StateTransform.before.panic-abort.mir
coroutine_storage_dead_unwind.main-{closure#0}.StateTransform.before.panic-unwind.mir
coroutine_storage_dead_unwind.rs
coroutine_tiny.main-{closure#0}.coroutine_resume.0.mir End locals' live range before suspending coroutine 2023-12-11 23:11:20 +01:00
coroutine_tiny.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
deduplicate_blocks.is_line_doc_comment_2.DeduplicateBlocks.panic-abort.diff Start blocks eagerly 2024-02-12 17:37:05 +01:00
deduplicate_blocks.is_line_doc_comment_2.DeduplicateBlocks.panic-unwind.diff Start blocks eagerly 2024-02-12 17:37:05 +01:00
deduplicate_blocks.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
derefer_complex_case.main.Derefer.panic-abort.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
derefer_complex_case.main.Derefer.panic-unwind.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
derefer_complex_case.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
derefer_inline_test.main.Derefer.panic-abort.diff
derefer_inline_test.main.Derefer.panic-unwind.diff
derefer_inline_test.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
derefer_terminator_test.main.Derefer.panic-abort.diff
derefer_terminator_test.main.Derefer.panic-unwind.diff
derefer_terminator_test.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
derefer_test_multiple.main.Derefer.diff
derefer_test_multiple.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
derefer_test.main.Derefer.diff
derefer_test.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
dont_inline_type_id.call.Inline.diff
dont_inline_type_id.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
early_otherwise_branch_3_element_tuple.opt1.EarlyOtherwiseBranch.diff Lower bindings in a predictable order 2024-02-28 01:41:25 +01:00
early_otherwise_branch_3_element_tuple.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
early_otherwise_branch_68867.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
early_otherwise_branch_68867.try_sum.EarlyOtherwiseBranch.diff Lower bindings in a predictable order 2024-02-28 01:41:25 +01:00
early_otherwise_branch_noopt.noopt1.EarlyOtherwiseBranch.diff Rollup merge of #121908 - Nadrieril:dynamic-variant-collection, r=matthewjasper 2024-03-13 06:41:21 +01:00
early_otherwise_branch_noopt.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
early_otherwise_branch_soundness.no_deref_ptr.EarlyOtherwiseBranch.diff
early_otherwise_branch_soundness.no_downcast.EarlyOtherwiseBranch.diff
early_otherwise_branch_soundness.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
early_otherwise_branch.opt1.EarlyOtherwiseBranch.diff Lower bindings in a predictable order 2024-02-28 01:41:25 +01:00
early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff Rollup merge of #121908 - Nadrieril:dynamic-variant-collection, r=matthewjasper 2024-03-13 06:41:21 +01:00
early_otherwise_branch.opt3.EarlyOtherwiseBranch.diff Lower bindings in a predictable order 2024-02-28 01:41:25 +01:00
early_otherwise_branch.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
enum_opt.cand.EnumSizeOpt.32bit.diff
enum_opt.cand.EnumSizeOpt.64bit.diff
enum_opt.invalid.EnumSizeOpt.32bit.diff
enum_opt.invalid.EnumSizeOpt.64bit.diff
enum_opt.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
enum_opt.trunc.EnumSizeOpt.32bit.diff
enum_opt.trunc.EnumSizeOpt.64bit.diff
enum_opt.unin.EnumSizeOpt.32bit.diff
enum_opt.unin.EnumSizeOpt.64bit.diff
fn_ptr_shim.core.ops-function-Fn-call.AddMovesForPackedDrops.before.mir
fn_ptr_shim.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
funky_arms.float_to_exponential_common.GVN.panic-abort.diff Replace the default branch with an unreachable branch If it is the last variant 2024-03-07 22:58:51 +08:00
funky_arms.float_to_exponential_common.GVN.panic-unwind.diff Replace the default branch with an unreachable branch If it is the last variant 2024-03-07 22:58:51 +08:00
funky_arms.rs Enable more mir-opt tests in debug builds 2024-03-22 20:14:39 -04:00
graphviz.main.built.after.dot
graphviz.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
gvn_copy_moves.fn0.GVN.diff Also turn moves into copies even if through projections. 2024-02-05 23:31:54 +00:00
gvn_copy_moves.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
gvn_uninhabited.f.GVN.panic-abort.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
gvn_uninhabited.f.GVN.panic-unwind.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
gvn_uninhabited.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
gvn.arithmetic_checked.GVN.panic-abort.diff Simplify binary ops. 2024-01-16 22:20:53 +00:00
gvn.arithmetic_checked.GVN.panic-unwind.diff Simplify binary ops. 2024-01-16 22:20:53 +00:00
gvn.arithmetic_float.GVN.panic-abort.diff
gvn.arithmetic_float.GVN.panic-unwind.diff
gvn.arithmetic.GVN.panic-abort.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
gvn.arithmetic.GVN.panic-unwind.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
gvn.cast.GVN.panic-abort.diff
gvn.cast.GVN.panic-unwind.diff
gvn.comparison.GVN.panic-abort.diff Simplify binary ops. 2024-01-16 22:20:53 +00:00
gvn.comparison.GVN.panic-unwind.diff Simplify binary ops. 2024-01-16 22:20:53 +00:00
gvn.constant_index_overflow.GVN.panic-abort.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
gvn.constant_index_overflow.GVN.panic-unwind.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
gvn.dereferences.GVN.panic-abort.diff Avoid recording no-op replacements. 2024-01-07 13:54:05 +00:00
gvn.dereferences.GVN.panic-unwind.diff Avoid recording no-op replacements. 2024-01-07 13:54:05 +00:00
gvn.duplicate_slice.GVN.panic-abort.diff
gvn.duplicate_slice.GVN.panic-unwind.diff
gvn.fn_pointers.GVN.panic-abort.diff Simplify unary operations. 2024-01-16 22:20:54 +00:00
gvn.fn_pointers.GVN.panic-unwind.diff Simplify unary operations. 2024-01-16 22:20:54 +00:00
gvn.indirect_static.GVN.panic-abort.diff
gvn.indirect_static.GVN.panic-unwind.diff
gvn.multiple_branches.GVN.panic-abort.diff
gvn.multiple_branches.GVN.panic-unwind.diff
gvn.references.GVN.panic-abort.diff
gvn.references.GVN.panic-unwind.diff
gvn.repeat.GVN.panic-abort.diff
gvn.repeat.GVN.panic-unwind.diff
gvn.repeated_index.GVN.panic-abort.diff Simplify Len. 2024-01-16 22:20:54 +00:00
gvn.repeated_index.GVN.panic-unwind.diff Simplify Len. 2024-01-16 22:20:54 +00:00
gvn.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
gvn.slices.GVN.panic-abort.diff Avoid recording no-op replacements. 2024-01-07 13:54:05 +00:00
gvn.slices.GVN.panic-unwind.diff Avoid recording no-op replacements. 2024-01-07 13:54:05 +00:00
gvn.subexpression_elimination.GVN.panic-abort.diff Avoid recording no-op replacements. 2024-01-07 13:54:05 +00:00
gvn.subexpression_elimination.GVN.panic-unwind.diff Avoid recording no-op replacements. 2024-01-07 13:54:05 +00:00
gvn.unary.GVN.panic-abort.diff Simplify unary operations. 2024-01-16 22:20:54 +00:00
gvn.unary.GVN.panic-unwind.diff Simplify unary operations. 2024-01-16 22:20:54 +00:00
gvn.wide_ptr_integer.GVN.panic-abort.diff Split gvn wide ptr tests. 2024-02-09 21:01:57 +00:00
gvn.wide_ptr_integer.GVN.panic-unwind.diff Split gvn wide ptr tests. 2024-02-09 21:01:57 +00:00
gvn.wide_ptr_provenance.GVN.panic-abort.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
gvn.wide_ptr_provenance.GVN.panic-unwind.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
gvn.wide_ptr_same_provenance.GVN.panic-abort.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
gvn.wide_ptr_same_provenance.GVN.panic-unwind.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
gvn.wrap_unwrap.GVN.panic-abort.diff Start blocks eagerly 2024-02-12 17:37:05 +01:00
gvn.wrap_unwrap.GVN.panic-unwind.diff Start blocks eagerly 2024-02-12 17:37:05 +01:00
if_condition_int.dont_opt_bool.SimplifyComparisonIntegral.diff
if_condition_int.dont_opt_floats.SimplifyComparisonIntegral.diff
if_condition_int.dont_remove_comparison.SimplifyComparisonIntegral.diff
if_condition_int.opt_char.SimplifyComparisonIntegral.diff
if_condition_int.opt_i8.SimplifyComparisonIntegral.diff
if_condition_int.opt_multiple_ifs.SimplifyComparisonIntegral.diff
if_condition_int.opt_negative.SimplifyComparisonIntegral.diff
if_condition_int.opt_u32.SimplifyComparisonIntegral.diff
if_condition_int.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
inline_coroutine_body.rs Fix validation on substituted callee bodies in MIR inliner 2024-03-22 17:17:03 -04:00
inline_coroutine_body.run2-{closure#0}.Inline.panic-abort.diff In pretty_print_type(), print async fn futures' paths instead of spans. 2024-03-25 08:01:15 -07:00
inline_coroutine_body.run2-{closure#0}.Inline.panic-unwind.diff In pretty_print_type(), print async fn futures' paths instead of spans. 2024-03-25 08:01:15 -07:00
inline_generically_if_sized.call.Inline.diff
inline_generically_if_sized.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
instrument_coverage_cleanup.main.CleanupPostBorrowck.diff Clean up unnecessary headers/flags in coverage mir-opt tests 2024-03-24 22:17:47 +11:00
instrument_coverage_cleanup.main.InstrumentCoverage.diff Clean up unnecessary headers/flags in coverage mir-opt tests 2024-03-24 22:17:47 +11:00
instrument_coverage_cleanup.rs Clean up unnecessary headers/flags in coverage mir-opt tests 2024-03-24 22:17:47 +11:00
instrument_coverage.bar.InstrumentCoverage.diff Clean up unnecessary headers/flags in coverage mir-opt tests 2024-03-24 22:17:47 +11:00
instrument_coverage.main.InstrumentCoverage.diff Clean up unnecessary headers/flags in coverage mir-opt tests 2024-03-24 22:17:47 +11:00
instrument_coverage.rs Clean up unnecessary headers/flags in coverage mir-opt tests 2024-03-24 22:17:47 +11:00
issue_38669.main.SimplifyCfg-initial.after.mir
issue_38669.rs
issue_41110.main.ElaborateDrops.panic-abort.diff
issue_41110.main.ElaborateDrops.panic-unwind.diff
issue_41110.rs
issue_41110.test.ElaborateDrops.panic-abort.diff
issue_41110.test.ElaborateDrops.panic-unwind.diff
issue_41697.{impl#0}-{constant#0}.SimplifyCfg-promote-consts.after.mir
issue_41697.rs
issue_41888.main.ElaborateDrops.panic-abort.diff
issue_41888.main.ElaborateDrops.panic-unwind.diff
issue_41888.rs
issue_62289.rs
issue_62289.test.ElaborateDrops.before.panic-abort.mir Start blocks eagerly 2024-02-12 17:37:05 +01:00
issue_62289.test.ElaborateDrops.before.panic-unwind.mir Start blocks eagerly 2024-02-12 17:37:05 +01:00
issue_72181_1.f.built.after.mir Start blocks eagerly 2024-02-12 17:37:05 +01:00
issue_72181_1.main.built.after.mir
issue_72181_1.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
issue_72181.bar.built.after.mir Don't bother to save a block 2024-02-17 20:21:57 +01:00
issue_72181.foo.built.after.mir
issue_72181.main.built.after.mir Don't bother to save a block 2024-02-17 20:21:57 +01:00
issue_72181.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
issue_76432.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
issue_76432.test.SimplifyComparisonIntegral.panic-abort.diff
issue_76432.test.SimplifyComparisonIntegral.panic-unwind.diff
issue_78192.f.InstSimplify.diff
issue_78192.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
issue_91633.bar.built.after.mir Don't bother to save a block 2024-02-17 20:21:57 +01:00
issue_91633.foo.built.after.mir
issue_91633.fun.built.after.mir
issue_91633.hey.built.after.mir Don't bother to save a block 2024-02-17 20:21:57 +01:00
issue_91633.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
issue_99325.main.built.after.32bit.mir update region debug formatting 2024-03-18 16:44:12 +00:00
issue_99325.main.built.after.64bit.mir update region debug formatting 2024-03-18 16:44:12 +00:00
issue_99325.rs
issue_101973.inner.GVN.panic-abort.diff Simplify binary ops. 2024-01-16 22:20:53 +00:00
issue_101973.inner.GVN.panic-unwind.diff Simplify binary ops. 2024-01-16 22:20:53 +00:00
issue_101973.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
issue_104451_unwindable_intrinsics.main.AbortUnwindingCalls.after.panic-abort.mir
issue_104451_unwindable_intrinsics.main.AbortUnwindingCalls.after.panic-unwind.mir
issue_104451_unwindable_intrinsics.rs
issue_120925_unsafefncast.rs Add test. 2024-02-13 17:21:53 +00:00
jump_threading.aggregate.JumpThreading.panic-abort.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
jump_threading.aggregate.JumpThreading.panic-unwind.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
jump_threading.assume.JumpThreading.panic-abort.diff Add test for jump-threading assume. 2024-01-23 00:00:22 +00:00
jump_threading.assume.JumpThreading.panic-unwind.diff Add test for jump-threading assume. 2024-01-23 00:00:22 +00:00
jump_threading.custom_discr.JumpThreading.panic-abort.diff
jump_threading.custom_discr.JumpThreading.panic-unwind.diff
jump_threading.dfa.JumpThreading.panic-abort.diff Start blocks eagerly 2024-02-12 17:37:05 +01:00
jump_threading.dfa.JumpThreading.panic-unwind.diff Start blocks eagerly 2024-02-12 17:37:05 +01:00
jump_threading.disappearing_bb.JumpThreading.panic-abort.diff
jump_threading.disappearing_bb.JumpThreading.panic-unwind.diff
jump_threading.duplicate_chain.JumpThreading.panic-abort.diff
jump_threading.duplicate_chain.JumpThreading.panic-unwind.diff
jump_threading.identity.JumpThreading.panic-abort.diff Start blocks eagerly 2024-02-12 17:37:05 +01:00
jump_threading.identity.JumpThreading.panic-unwind.diff Start blocks eagerly 2024-02-12 17:37:05 +01:00
jump_threading.multiple_match.JumpThreading.panic-abort.diff
jump_threading.multiple_match.JumpThreading.panic-unwind.diff
jump_threading.mutable_ref.JumpThreading.panic-abort.diff
jump_threading.mutable_ref.JumpThreading.panic-unwind.diff
jump_threading.mutate_discriminant.JumpThreading.panic-abort.diff
jump_threading.mutate_discriminant.JumpThreading.panic-unwind.diff
jump_threading.renumbered_bb.JumpThreading.panic-abort.diff
jump_threading.renumbered_bb.JumpThreading.panic-unwind.diff
jump_threading.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
jump_threading.too_complex.JumpThreading.panic-abort.diff Start blocks eagerly 2024-02-12 17:37:05 +01:00
jump_threading.too_complex.JumpThreading.panic-unwind.diff Start blocks eagerly 2024-02-12 17:37:05 +01:00
loop_test.main.SimplifyCfg-promote-consts.after.mir
loop_test.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
lower_array_len.array_bound_mut.NormalizeArrayLen.panic-abort.diff
lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff
lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff
lower_array_len.array_len_by_value.NormalizeArrayLen.panic-abort.diff
lower_array_len.array_len_by_value.NormalizeArrayLen.panic-unwind.diff
lower_array_len.array_len_raw.NormalizeArrayLen.panic-abort.diff
lower_array_len.array_len_raw.NormalizeArrayLen.panic-unwind.diff
lower_array_len.array_len_reborrow.NormalizeArrayLen.panic-abort.diff
lower_array_len.array_len_reborrow.NormalizeArrayLen.panic-unwind.diff
lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff
lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
lower_array_len.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
lower_intrinsics.align_of.LowerIntrinsics.panic-abort.diff
lower_intrinsics.align_of.LowerIntrinsics.panic-unwind.diff
lower_intrinsics.assume.LowerIntrinsics.panic-abort.diff
lower_intrinsics.assume.LowerIntrinsics.panic-unwind.diff
lower_intrinsics.discriminant.LowerIntrinsics.panic-abort.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
lower_intrinsics.discriminant.LowerIntrinsics.panic-unwind.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
lower_intrinsics.f_copy_nonoverlapping.LowerIntrinsics.panic-abort.diff
lower_intrinsics.f_copy_nonoverlapping.LowerIntrinsics.panic-unwind.diff
lower_intrinsics.forget.LowerIntrinsics.panic-abort.diff
lower_intrinsics.forget.LowerIntrinsics.panic-unwind.diff
lower_intrinsics.non_const.LowerIntrinsics.panic-abort.diff
lower_intrinsics.non_const.LowerIntrinsics.panic-unwind.diff
lower_intrinsics.ptr_offset.LowerIntrinsics.panic-abort.diff
lower_intrinsics.ptr_offset.LowerIntrinsics.panic-unwind.diff
lower_intrinsics.read_via_copy_primitive.LowerIntrinsics.panic-abort.diff
lower_intrinsics.read_via_copy_primitive.LowerIntrinsics.panic-unwind.diff
lower_intrinsics.read_via_copy_uninhabited.LowerIntrinsics.panic-abort.diff
lower_intrinsics.read_via_copy_uninhabited.LowerIntrinsics.panic-unwind.diff
lower_intrinsics.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
lower_intrinsics.size_of.LowerIntrinsics.panic-abort.diff
lower_intrinsics.size_of.LowerIntrinsics.panic-unwind.diff
lower_intrinsics.transmute_inhabited.LowerIntrinsics.panic-abort.diff
lower_intrinsics.transmute_inhabited.LowerIntrinsics.panic-unwind.diff
lower_intrinsics.transmute_ref_dst.LowerIntrinsics.panic-abort.diff
lower_intrinsics.transmute_ref_dst.LowerIntrinsics.panic-unwind.diff
lower_intrinsics.transmute_to_box_uninhabited.LowerIntrinsics.panic-abort.diff
lower_intrinsics.transmute_to_box_uninhabited.LowerIntrinsics.panic-unwind.diff
lower_intrinsics.transmute_to_mut_uninhabited.LowerIntrinsics.panic-abort.diff
lower_intrinsics.transmute_to_mut_uninhabited.LowerIntrinsics.panic-unwind.diff
lower_intrinsics.transmute_to_ref_uninhabited.LowerIntrinsics.panic-abort.diff
lower_intrinsics.transmute_to_ref_uninhabited.LowerIntrinsics.panic-unwind.diff
lower_intrinsics.transmute_uninhabited.LowerIntrinsics.panic-abort.diff
lower_intrinsics.transmute_uninhabited.LowerIntrinsics.panic-unwind.diff
lower_intrinsics.unchecked.LowerIntrinsics.panic-abort.diff
lower_intrinsics.unchecked.LowerIntrinsics.panic-unwind.diff
lower_intrinsics.unreachable.LowerIntrinsics.panic-abort.diff
lower_intrinsics.unreachable.LowerIntrinsics.panic-unwind.diff
lower_intrinsics.with_overflow.LowerIntrinsics.panic-abort.diff
lower_intrinsics.with_overflow.LowerIntrinsics.panic-unwind.diff
lower_intrinsics.wrapping.LowerIntrinsics.panic-abort.diff
lower_intrinsics.wrapping.LowerIntrinsics.panic-unwind.diff
lower_intrinsics.write_via_move_string.LowerIntrinsics.panic-abort.diff
lower_intrinsics.write_via_move_string.LowerIntrinsics.panic-unwind.diff
lower_slice_len.bound.LowerSliceLenCalls.panic-abort.diff
lower_slice_len.bound.LowerSliceLenCalls.panic-unwind.diff
lower_slice_len.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
match_arm_scopes.complicated_match.panic-abort.SimplifyCfg-initial.after-ElaborateDrops.after.diff Use an enum instead of manually tracking indices for target_blocks 2024-03-02 18:33:17 +01:00
match_arm_scopes.complicated_match.panic-unwind.SimplifyCfg-initial.after-ElaborateDrops.after.diff Use an enum instead of manually tracking indices for target_blocks 2024-03-02 18:33:17 +01:00
match_arm_scopes.rs
matches_reduce_branches.bar.MatchBranchSimplification.diff
matches_reduce_branches.foo.MatchBranchSimplification.diff
matches_reduce_branches.match_nested_if.MatchBranchSimplification.diff
matches_reduce_branches.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
matches_u8.exhaustive_match_i8.MatchBranchSimplification.diff Start blocks eagerly 2024-02-12 17:37:05 +01:00
matches_u8.exhaustive_match.MatchBranchSimplification.diff Start blocks eagerly 2024-02-12 17:37:05 +01:00
matches_u8.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
multiple_return_terminators.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
multiple_return_terminators.test.MultipleReturnTerminators.diff
no_drop_for_inactive_variant.rs simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
no_drop_for_inactive_variant.unwrap.SimplifyCfg-pre-optimizations.after.panic-abort.mir simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
no_drop_for_inactive_variant.unwrap.SimplifyCfg-pre-optimizations.after.panic-unwind.mir simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
no_spurious_drop_after_call.main.ElaborateDrops.before.panic-abort.mir
no_spurious_drop_after_call.main.ElaborateDrops.before.panic-unwind.mir
no_spurious_drop_after_call.rs
nrvo_miscompile_111005.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
nrvo_miscompile_111005.wrong.RenameReturnPlace.diff
nrvo_simple.nrvo.RenameReturnPlace.panic-abort.diff
nrvo_simple.nrvo.RenameReturnPlace.panic-unwind.diff
nrvo_simple.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
packed_struct_drop_aligned.main.SimplifyCfg-pre-optimizations.after.panic-abort.mir simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
packed_struct_drop_aligned.main.SimplifyCfg-pre-optimizations.after.panic-unwind.mir simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
packed_struct_drop_aligned.rs simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
README.md
reference_prop.debuginfo.ReferencePropagation.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
reference_prop.dominate_storage.ReferencePropagation.diff
reference_prop.maybe_dead.ReferencePropagation.diff
reference_prop.multiple_storage.ReferencePropagation.diff
reference_prop.mut_raw_then_mut_shr.ReferencePropagation.diff
reference_prop.read_through_raw.ReferencePropagation.diff
reference_prop.reference_propagation_const_ptr.ReferencePropagation.diff
reference_prop.reference_propagation_mut_ptr.ReferencePropagation.diff
reference_prop.reference_propagation_mut.ReferencePropagation.diff
reference_prop.reference_propagation.ReferencePropagation.diff
reference_prop.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
reference_prop.unique_with_copies.ReferencePropagation.diff
remove_fake_borrows.match_guard.CleanupPostBorrowck.panic-abort.diff update mir-opt tests 2023-11-08 22:55:29 +01:00
remove_fake_borrows.match_guard.CleanupPostBorrowck.panic-unwind.diff update mir-opt tests 2023-11-08 22:55:29 +01:00
remove_fake_borrows.rs
remove_never_const.no_codegen.PreCodegen.after.mir
remove_never_const.rs Run Miri and mir-opt tests without a target linker 2024-01-06 14:17:33 -05:00
remove_storage_markers.main.RemoveStorageMarkers.panic-abort.diff Start blocks eagerly 2024-02-12 17:37:05 +01:00
remove_storage_markers.main.RemoveStorageMarkers.panic-unwind.diff Start blocks eagerly 2024-02-12 17:37:05 +01:00
remove_storage_markers.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
remove_unneeded_drops.cannot_opt_generic.RemoveUnneededDrops.panic-abort.diff
remove_unneeded_drops.cannot_opt_generic.RemoveUnneededDrops.panic-unwind.diff
remove_unneeded_drops.dont_opt.RemoveUnneededDrops.panic-abort.diff
remove_unneeded_drops.dont_opt.RemoveUnneededDrops.panic-unwind.diff
remove_unneeded_drops.opt_generic_copy.RemoveUnneededDrops.panic-abort.diff
remove_unneeded_drops.opt_generic_copy.RemoveUnneededDrops.panic-unwind.diff
remove_unneeded_drops.opt.RemoveUnneededDrops.panic-abort.diff
remove_unneeded_drops.opt.RemoveUnneededDrops.panic-unwind.diff
remove_unneeded_drops.rs
remove_zsts.get_union.PreCodegen.after.mir
remove_zsts.get_union.RemoveZsts.diff
remove_zsts.rs
retag.{impl#0}-foo_shr.SimplifyCfg-pre-optimizations.after.panic-abort.mir simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
retag.{impl#0}-foo_shr.SimplifyCfg-pre-optimizations.after.panic-unwind.mir simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
retag.{impl#0}-foo.SimplifyCfg-pre-optimizations.after.panic-abort.mir simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
retag.{impl#0}-foo.SimplifyCfg-pre-optimizations.after.panic-unwind.mir simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
retag.array_casts.SimplifyCfg-pre-optimizations.after.panic-abort.mir simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
retag.array_casts.SimplifyCfg-pre-optimizations.after.panic-unwind.mir simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
retag.box_to_raw_mut.SimplifyCfg-pre-optimizations.after.panic-abort.mir add_retag: ensure box-to-raw-ptr casts are preserved for Miri 2024-03-18 10:32:25 +01:00
retag.box_to_raw_mut.SimplifyCfg-pre-optimizations.after.panic-unwind.mir add_retag: ensure box-to-raw-ptr casts are preserved for Miri 2024-03-18 10:32:25 +01:00
retag.core.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.panic-abort.mir
retag.core.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.panic-unwind.mir
retag.main-{closure#0}.SimplifyCfg-pre-optimizations.after.panic-abort.mir simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
retag.main-{closure#0}.SimplifyCfg-pre-optimizations.after.panic-unwind.mir simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
retag.main.SimplifyCfg-pre-optimizations.after.panic-abort.mir simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
retag.main.SimplifyCfg-pre-optimizations.after.panic-unwind.mir simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
retag.rs add_retag: ensure box-to-raw-ptr casts are preserved for Miri 2024-03-18 10:32:25 +01:00
return_an_array.rs
separate_const_switch.identity.JumpThreading.diff Update MIR with MirPatch in UninhabitedEnumBranching 2024-03-08 08:15:14 +08:00
separate_const_switch.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
separate_const_switch.too_complex.JumpThreading.diff Update MIR with MirPatch in UninhabitedEnumBranching 2024-03-08 08:15:14 +08:00
set_no_discriminant.f.JumpThreading.diff Skip threading over no-op SetDiscriminant. 2024-01-07 00:28:20 +00:00
set_no_discriminant.generic.JumpThreading.diff Skip threading over no-op SetDiscriminant. 2024-01-07 00:28:20 +00:00
set_no_discriminant.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
simplify_arm_identity.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
simplify_arm.id_try.SimplifyArmIdentity.diff
simplify_arm.id_try.SimplifyBranchSame.diff
simplify_arm.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
simplify_cfg.main.SimplifyCfg-initial.diff
simplify_cfg.main.SimplifyCfg-post-analysis.diff simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
simplify_cfg.rs simplify_cfg: rename some passes so that they make more sense 2024-03-17 19:59:15 +01:00
simplify_duplicate_unreachable_blocks.assert_nonzero_nonmax.SimplifyCfg-after-uninhabited-enum-branching.diff
simplify_duplicate_unreachable_blocks.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
simplify_if.main.SimplifyConstCondition-after-const-prop.panic-abort.diff Reorder early post-inlining passes. 2024-01-07 01:42:57 +00:00
simplify_if.main.SimplifyConstCondition-after-const-prop.panic-unwind.diff Reorder early post-inlining passes. 2024-01-07 01:42:57 +00:00
simplify_if.rs Enable simplify MIR-opt test 2024-01-28 13:50:20 -06:00
simplify_locals_fixedpoint.foo.SimplifyLocals-final.panic-abort.diff Get all variants to eliminate the default branching if we cannot get the layout of type 2024-03-07 22:58:51 +08:00
simplify_locals_fixedpoint.foo.SimplifyLocals-final.panic-unwind.diff Get all variants to eliminate the default branching if we cannot get the layout of type 2024-03-07 22:58:51 +08:00
simplify_locals_fixedpoint.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
simplify_locals_removes_unused_consts.main.SimplifyLocals-before-const-prop.panic-abort.diff
simplify_locals_removes_unused_consts.main.SimplifyLocals-before-const-prop.panic-unwind.diff
simplify_locals_removes_unused_consts.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
simplify_locals_removes_unused_discriminant_reads.map.SimplifyLocals-before-const-prop.diff Start blocks eagerly 2024-02-12 17:37:05 +01:00
simplify_locals_removes_unused_discriminant_reads.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
simplify_locals.c.SimplifyLocals-before-const-prop.diff
simplify_locals.d1.SimplifyLocals-before-const-prop.diff
simplify_locals.d2.SimplifyLocals-before-const-prop.diff
simplify_locals.expose_addr.SimplifyLocals-before-const-prop.diff
simplify_locals.r.SimplifyLocals-before-const-prop.diff
simplify_locals.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
simplify_locals.t1.SimplifyLocals-before-const-prop.diff
simplify_locals.t2.SimplifyLocals-before-const-prop.diff
simplify_locals.t3.SimplifyLocals-before-const-prop.diff
simplify_locals.t4.SimplifyLocals-before-const-prop.diff
simplify_match.main.GVN.panic-abort.diff Sandwich MIR optimizations between DSE. 2024-01-11 09:58:19 +00:00
simplify_match.main.GVN.panic-unwind.diff Sandwich MIR optimizations between DSE. 2024-01-11 09:58:19 +00:00
simplify_match.rs Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
simplify_try_if_let.{impl#0}-append.SimplifyArmIdentity.diff
simplify_try_if_let.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
slice_drop_shim.core.ptr-drop_in_place.[String].AddMovesForPackedDrops.before.mir
slice_drop_shim.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
ssa_unreachable_116212.rs
storage_ranges.main.nll.0.mir
storage_ranges.rs
switch_to_self.rs
switch_to_self.test.MatchBranchSimplification.diff
tls_access.main.PreCodegen.after.mir
tls_access.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
uninhabited_enum_branching.byref.UninhabitedEnumBranching.panic-abort.diff Update MIR with MirPatch in UninhabitedEnumBranching 2024-03-08 08:15:14 +08:00
uninhabited_enum_branching.byref.UninhabitedEnumBranching.panic-unwind.diff Update MIR with MirPatch in UninhabitedEnumBranching 2024-03-08 08:15:14 +08:00
uninhabited_enum_branching.custom_discriminant.UninhabitedEnumBranching.panic-abort.diff Update MIR with MirPatch in UninhabitedEnumBranching 2024-03-08 08:15:14 +08:00
uninhabited_enum_branching.custom_discriminant.UninhabitedEnumBranching.panic-unwind.diff Update MIR with MirPatch in UninhabitedEnumBranching 2024-03-08 08:15:14 +08:00
uninhabited_enum_branching.otherwise_t1.UninhabitedEnumBranching.panic-abort.diff Replace the default branch with an unreachable branch If it is the last variant 2024-03-07 22:58:51 +08:00
uninhabited_enum_branching.otherwise_t1.UninhabitedEnumBranching.panic-unwind.diff Replace the default branch with an unreachable branch If it is the last variant 2024-03-07 22:58:51 +08:00
uninhabited_enum_branching.otherwise_t2.UninhabitedEnumBranching.panic-abort.diff Replace the default branch with an unreachable branch If it is the last variant 2024-03-07 22:58:51 +08:00
uninhabited_enum_branching.otherwise_t2.UninhabitedEnumBranching.panic-unwind.diff Replace the default branch with an unreachable branch If it is the last variant 2024-03-07 22:58:51 +08:00
uninhabited_enum_branching.otherwise_t3.UninhabitedEnumBranching.panic-abort.diff Replace the default branch with an unreachable branch If it is the last variant 2024-03-07 22:58:51 +08:00
uninhabited_enum_branching.otherwise_t3.UninhabitedEnumBranching.panic-unwind.diff Replace the default branch with an unreachable branch If it is the last variant 2024-03-07 22:58:51 +08:00
uninhabited_enum_branching.otherwise_t4_uninhabited_default_2.UninhabitedEnumBranching.panic-abort.diff Get all variants to eliminate the default branching if we cannot get the layout of type 2024-03-07 22:58:51 +08:00
uninhabited_enum_branching.otherwise_t4_uninhabited_default_2.UninhabitedEnumBranching.panic-unwind.diff Replace the default branch with an unreachable branch If it is the last variant 2024-03-07 22:58:51 +08:00
uninhabited_enum_branching.otherwise_t4_uninhabited_default.UninhabitedEnumBranching.panic-abort.diff Replace the default branch with an unreachable branch If it is the last variant 2024-03-07 22:58:51 +08:00
uninhabited_enum_branching.otherwise_t4_uninhabited_default.UninhabitedEnumBranching.panic-unwind.diff Replace the default branch with an unreachable branch If it is the last variant 2024-03-07 22:58:51 +08:00
uninhabited_enum_branching.otherwise_t4.UninhabitedEnumBranching.panic-abort.diff Replace the default branch with an unreachable branch If it is the last variant 2024-03-07 22:58:51 +08:00
uninhabited_enum_branching.otherwise_t4.UninhabitedEnumBranching.panic-unwind.diff Replace the default branch with an unreachable branch If it is the last variant 2024-03-07 22:58:51 +08:00
uninhabited_enum_branching.otherwise_t5_uninhabited_default.UninhabitedEnumBranching.panic-abort.diff Get all variants to eliminate the default branching if we cannot get the layout of type 2024-03-07 22:58:51 +08:00
uninhabited_enum_branching.otherwise_t5_uninhabited_default.UninhabitedEnumBranching.panic-unwind.diff Get all variants to eliminate the default branching if we cannot get the layout of type 2024-03-07 22:58:51 +08:00
uninhabited_enum_branching.rs Update MIR with MirPatch in UninhabitedEnumBranching 2024-03-08 08:15:14 +08:00
uninhabited_enum_branching.simple.UninhabitedEnumBranching.panic-abort.diff Update MIR with MirPatch in UninhabitedEnumBranching 2024-03-08 08:15:14 +08:00
uninhabited_enum_branching.simple.UninhabitedEnumBranching.panic-unwind.diff Update MIR with MirPatch in UninhabitedEnumBranching 2024-03-08 08:15:14 +08:00
uninhabited_enum.process_never.SimplifyLocals-final.after.mir
uninhabited_enum.process_void.SimplifyLocals-final.after.mir
uninhabited_enum.rs
uninhabited_fallthrough_elimination.eliminate_fallthrough.UninhabitedEnumBranching.diff
uninhabited_fallthrough_elimination.keep_fallthrough.UninhabitedEnumBranching.diff Replace the default branch with an unreachable branch If it is the last variant 2024-03-07 22:58:51 +08:00
uninhabited_fallthrough_elimination.rs
unreachable_diverging.main.UnreachablePropagation.panic-abort.diff
unreachable_diverging.main.UnreachablePropagation.panic-unwind.diff
unreachable_diverging.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
unreachable.as_match.UnreachablePropagation.panic-abort.diff Start blocks eagerly 2024-02-12 17:37:05 +01:00
unreachable.as_match.UnreachablePropagation.panic-unwind.diff Start blocks eagerly 2024-02-12 17:37:05 +01:00
unreachable.if_let.UnreachablePropagation.panic-abort.diff
unreachable.if_let.UnreachablePropagation.panic-unwind.diff
unreachable.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
unusual_item_types.{impl#0}-ASSOCIATED_CONSTANT.built.after.mir
unusual_item_types.core.ptr-drop_in_place.Vec_i32_.AddMovesForPackedDrops.before.mir
unusual_item_types.E-V-{constant#0}.built.after.mir
unusual_item_types.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
unusual_item_types.Test-X-{constructor#0}.built.after.mir

This folder contains tests for MIR optimizations.

The mir-opt test format emits MIR to extra files that you can automatically update by specifying --bless on the command line (just like ui tests updating .stderr files).

--blessable test format

By default 32 bit and 64 bit targets use the same dump files, which can be problematic in the presence of pointers in constants or other bit width dependent things. In that case you can add

// EMIT_MIR_FOR_EACH_BIT_WIDTH

to your test, causing separate files to be generated for 32bit and 64bit systems.

Unit testing

If you are only testing the behavior of a particular mir-opt pass on some specific input (as is usually the case), you should add

// unit-test: PassName

to the top of the file. This makes sure that other passes don't run which means you'll get the input you expected and your test won't break when other code changes.

Emit a diff of the mir for a specific optimization

This is what you want most often when you want to see how an optimization changes the MIR.

// EMIT_MIR $file_name_of_some_mir_dump.diff

Emit mir after a specific optimization

Use this if you are just interested in the final state after an optimization.

// EMIT_MIR $file_name_of_some_mir_dump.after.mir

Emit mir before a specific optimization

This exists mainly for completeness and is rarely useful.

// EMIT_MIR $file_name_of_some_mir_dump.before.mir

FileCheck directives

The LLVM FileCheck tool is used to verify the contents of output MIR against CHECK directives present in the test file. This works on the runtime MIR, generated by --emit=mir, and not on the output of a individual passes.

Use // skip-filecheck to prevent FileCheck from running.

To check MIR for function foo, start with a // CHECK-LABEL fn foo( directive.

{{regex}} syntax allows to match regex.

[[name:regex]] syntax allows to bind name to a string matching regex, and refer to it as [[name]] in later directives, regex should be written not to match a leading space. Use [[my_local:_.*]] to name a local, and [[my_bb:bb.*]] to name a block.

Documentation for FileCheck is available here: https://www.llvm.org/docs/CommandGuide/FileCheck.html