rust/src/test/mir-opt
Xavier Denis f07607f47a Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
..
const_prop Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
inline Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
nll Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
README.md Remove old mir-opt test format. 2020-04-07 18:02:11 +00:00
address-of.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
address_of.address_of_reborrow.SimplifyCfg-initial.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
address_of.borrow_and_cast.SimplifyCfg-initial.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
array-index-is-temporary.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
array_index_is_temporary.main.SimplifyCfg-elaborate-drops.after.mir.32bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
array_index_is_temporary.main.SimplifyCfg-elaborate-drops.after.mir.64bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
basic_assignment.main.SimplifyCfg-initial.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
basic_assignment.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
box_expr.main.ElaborateDrops.before.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
box_expr.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
byte_slice.main.SimplifyCfg-elaborate-drops.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
byte_slice.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
combine_array_len.norm2.InstCombine.diff.32bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
combine_array_len.norm2.InstCombine.diff.64bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
combine_array_len.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
const-promotion-extern-static.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
const_allocation.main.ConstProp.after.mir.32bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
const_allocation.main.ConstProp.after.mir.64bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
const_allocation.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
const_allocation2.main.ConstProp.after.mir.32bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
const_allocation2.main.ConstProp.after.mir.64bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
const_allocation2.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
const_allocation3.main.ConstProp.after.mir.32bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
const_allocation3.main.ConstProp.after.mir.64bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
const_allocation3.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
const_promotion_extern_static.BAR-promoted[0].ConstProp.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
const_promotion_extern_static.BAR.PromoteTemps.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
const_promotion_extern_static.FOO-promoted[0].ConstProp.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
const_promotion_extern_static.FOO.PromoteTemps.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
const_prop_miscompile.bar.ConstProp.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
const_prop_miscompile.foo.ConstProp.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
const_prop_miscompile.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
copy_propagation.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
copy_propagation.test.CopyPropagation.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
copy_propagation_arg.arg_src.CopyPropagation.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
copy_propagation_arg.bar.CopyPropagation.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
copy_propagation_arg.baz.CopyPropagation.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
copy_propagation_arg.foo.CopyPropagation.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
copy_propagation_arg.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
deaggregator_test.bar.Deaggregator.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
deaggregator_test.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
deaggregator_test_enum.bar.Deaggregator.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
deaggregator_test_enum.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
deaggregator_test_enum_2.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
deaggregator_test_enum_2.test1.Deaggregator.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
deaggregator_test_multiple.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
deaggregator_test_multiple.test.Deaggregator.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
exponential-or.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
exponential_or.match_tuple.SimplifyCfg-initial.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
fn-ptr-shim.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
fn_ptr_shim.core.ops-function-Fn-call.AddMovesForPackedDrops.before.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
generator-drop-cleanup.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
generator-storage-dead-unwind.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
generator-tiny.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
generator_drop_cleanup.main-{{closure}}.generator_drop.0.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
generator_storage_dead_unwind.main-{{closure}}.StateTransform.before.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
generator_tiny.main-{{closure}}.generator_resume.0.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
graphviz.main.mir_map.0.dot Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
graphviz.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
instrument_coverage.bar.InstrumentCoverage.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
instrument_coverage.main.InstrumentCoverage.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
instrument_coverage.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
issue-38669.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
issue-41110.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
issue-41697.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
issue-41888.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
issue-49232.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
issue-62289.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
issue-72181-1.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
issue-72181.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
issue-73223.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
issue_38669.main.SimplifyCfg-initial.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
issue_41110.main.ElaborateDrops.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
issue_41110.test.ElaborateDrops.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
issue_41697.{{impl}}-{{constant}}.SimplifyCfg-qualify-consts.after.mir.32bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
issue_41697.{{impl}}-{{constant}}.SimplifyCfg-qualify-consts.after.mir.64bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
issue_41888.main.ElaborateDrops.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
issue_49232.main.mir_map.0.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
issue_62289.test.ElaborateDrops.before.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
issue_72181.bar.mir_map.0.mir.32bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
issue_72181.bar.mir_map.0.mir.64bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
issue_72181.foo.mir_map.0.mir.32bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
issue_72181.foo.mir_map.0.mir.64bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
issue_72181.main.mir_map.0.mir.32bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
issue_72181.main.mir_map.0.mir.64bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
issue_72181_1.f.mir_map.0.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
issue_72181_1.main.mir_map.0.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
issue_73223.main.PreCodegen.diff.32bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
issue_73223.main.PreCodegen.diff.64bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
issue_73223.main.SimplifyArmIdentity.diff.32bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
issue_73223.main.SimplifyArmIdentity.diff.64bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
loop_test.main.SimplifyCfg-qualify-consts.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
loop_test.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
match-arm-scopes.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
match_arm_scopes.complicated_match.SimplifyCfg-initial.after-ElaborateDrops.after.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
match_false_edges.full_tested_match.PromoteTemps.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
match_false_edges.full_tested_match2.PromoteTemps.before.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
match_false_edges.main.PromoteTemps.before.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
match_false_edges.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
match_test.main.SimplifyCfg-initial.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
match_test.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
no-drop-for-inactive-variant.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
no-spurious-drop-after-call.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
no_drop_for_inactive_variant.unwrap.SimplifyCfg-elaborate-drops.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
no_spurious_drop_after_call.main.ElaborateDrops.before.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
nrvo-simple.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
nrvo_simple.nrvo.RenameReturnPlace.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
packed-struct-drop-aligned.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.mir.32bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.mir.64bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
remove-never-const.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
remove_fake_borrows.match_guard.CleanupNonCodegenStatements.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
remove_fake_borrows.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
remove_never_const.no_codegen.PreCodegen.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
retag.core.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
retag.main-{{closure}}.SimplifyCfg-elaborate-drops.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
retag.main.SimplifyCfg-elaborate-drops.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
retag.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
retag.{{impl}}-foo.SimplifyCfg-elaborate-drops.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
retag.{{impl}}-foo_shr.SimplifyCfg-elaborate-drops.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
return_an_array.rs Remove licenses 2018-12-25 21:08:33 -07:00
simple-match.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
simple_match.match_bool.mir_map.0.mir.32bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simple_match.match_bool.mir_map.0.mir.64bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simplify-arm-identity.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
simplify-arm.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
simplify-locals-fixedpoint.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
simplify-locals-removes-unused-consts.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
simplify-locals-removes-unused-discriminant-reads.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
simplify_arm.id.SimplifyArmIdentity.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simplify_arm.id.SimplifyBranchSame.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simplify_arm.id_result.SimplifyArmIdentity.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simplify_arm.id_result.SimplifyBranchSame.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simplify_arm.id_try.SimplifyArmIdentity.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simplify_arm.id_try.SimplifyBranchSame.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simplify_arm_identity.main.SimplifyArmIdentity.diff.32bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simplify_arm_identity.main.SimplifyArmIdentity.diff.64bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simplify_cfg.main.SimplifyCfg-early-opt.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simplify_cfg.main.SimplifyCfg-initial.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simplify_cfg.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
simplify_if.main.SimplifyBranches-after-const-prop.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simplify_if.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
simplify_locals_fixedpoint.foo.SimplifyLocals.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simplify_locals_removes_unused_consts.main.SimplifyLocals.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simplify_locals_removes_unused_discriminant_reads.map.SimplifyLocals.diff.32bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simplify_locals_removes_unused_discriminant_reads.map.SimplifyLocals.diff.64bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simplify_match.main.ConstProp.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simplify_match.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
simplify_try.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
simplify_try.try_identity.SimplifyArmIdentity.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simplify_try.try_identity.SimplifyBranchSame.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simplify_try.try_identity.SimplifyLocals.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
simplify_try_if_let.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
simplify_try_if_let.{{impl}}-append.SimplifyArmIdentity.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
slice-drop-shim.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
slice_drop_shim.core.ptr-drop_in_place.[std__string__String].AddMovesForPackedDrops.before.mir.32bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
slice_drop_shim.core.ptr-drop_in_place.[std__string__String].AddMovesForPackedDrops.before.mir.64bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
storage_live_dead_in_statics.XXX.mir_map.0.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
storage_live_dead_in_statics.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
storage_ranges.main.nll.0.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
storage_ranges.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
tls-access.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
tls_access.main.SimplifyCfg-final.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
uniform_array_move_out.move_out_by_subslice.mir_map.0.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
uniform_array_move_out.move_out_from_end.mir_map.0.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
uniform_array_move_out.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
uninhabited-enum.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
uninhabited_enum.process_never.SimplifyLocals.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
uninhabited_enum.process_void.SimplifyLocals.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
uninhabited_enum_branching.main.SimplifyCfg-after-uninhabited-enum-branching.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
uninhabited_enum_branching.main.UninhabitedEnumBranching.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
uninhabited_enum_branching.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
unreachable.main.UnreachablePropagation.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
unreachable.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
unreachable_asm.main.UnreachablePropagation.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
unreachable_asm.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
unreachable_asm_2.main.UnreachablePropagation.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
unreachable_asm_2.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
unreachable_diverging.main.UnreachablePropagation.diff Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
unreachable_diverging.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
unusual-item-types.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
unusual_item_types.E-V-{{constant}}.mir_map.0.mir.32bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
unusual_item_types.E-V-{{constant}}.mir_map.0.mir.64bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
unusual_item_types.Test-X-{{constructor}}.mir_map.0.mir.32bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
unusual_item_types.Test-X-{{constructor}}.mir_map.0.mir.64bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
unusual_item_types.core.ptr-drop_in_place.std__vec__Vec_i32_.AddMovesForPackedDrops.before.mir.32bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
unusual_item_types.core.ptr-drop_in_place.std__vec__Vec_i32_.AddMovesForPackedDrops.before.mir.64bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
unusual_item_types.{{impl}}-ASSOCIATED_CONSTANT.mir_map.0.mir.32bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
unusual_item_types.{{impl}}-ASSOCIATED_CONSTANT.mir_map.0.mir.64bit Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00
while-storage.rs add crate name to mir dumps 2020-07-29 13:41:11 +02:00
while_storage.while_loop.PreCodegen.after.mir Move mir-opt tests to toplevel 2020-07-29 17:36:03 +02:00

README.md

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.

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