rust/tests/mir-opt/const_prop
Scott McMurray 64cce5fc7d Add CastKind::Transmute to MIR
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-22 15:15:41 -07:00
..
aggregate.foo.ConstProp.diff Add partial propagation test. 2023-02-02 23:26:29 +00:00
aggregate.foo.PreCodegen.after.mir Add partial propagation test. 2023-02-02 23:26:29 +00:00
aggregate.main.ConstProp.diff Add partial propagation test. 2023-02-02 23:26:29 +00:00
aggregate.main.PreCodegen.after.mir Add partial propagation test. 2023-02-02 23:26:29 +00:00
aggregate.rs Add partial propagation test. 2023-02-02 23:26:29 +00:00
array_index.main.ConstProp.32bit.diff
array_index.main.ConstProp.64bit.diff
array_index.rs
bad_op_div_by_zero.main.ConstProp.diff Remove overflow checks from ConstProp. 2023-02-18 21:35:02 +00:00
bad_op_div_by_zero.rs
bad_op_mod_by_zero.main.ConstProp.diff Remove OnlyPropagateInto. 2023-03-08 14:40:37 +00:00
bad_op_mod_by_zero.rs
bad_op_unsafe_oob_for_slices.main.ConstProp.32bit.diff Reimplement NormalizeArrayLen. 2023-01-29 21:19:02 +00:00
bad_op_unsafe_oob_for_slices.main.ConstProp.64bit.diff Reimplement NormalizeArrayLen. 2023-01-29 21:19:02 +00:00
bad_op_unsafe_oob_for_slices.rs
boolean_identities.rs
boolean_identities.test.ConstProp.diff Implement SSA CopyProp pass. 2023-01-27 18:22:45 +00:00
boxes.main.ConstProp.diff Remove uses of box_syntax in rustc and tools 2023-03-12 13:19:46 +00:00
boxes.rs Remove uses of box_syntax in rustc and tools 2023-03-12 13:19:46 +00:00
cast.main.ConstProp.diff
cast.rs
checked_add.main.ConstProp.diff
checked_add.rs
const_prop_fails_gracefully.main.ConstProp.diff
const_prop_fails_gracefully.rs
control_flow_simplification.hello.ConstProp.diff Generalize operation. 2023-03-13 18:22:55 +00:00
control_flow_simplification.hello.PreCodegen.before.mir
control_flow_simplification.rs
discriminant.main.ConstProp.32bit.diff Bless 32bit. 2023-03-08 14:40:38 +00:00
discriminant.main.ConstProp.64bit.diff Do not track span in ConstProp. 2023-03-08 14:40:37 +00:00
discriminant.rs
indirect.main.ConstProp.diff
indirect.rs
inherit_overflow.main.ConstProp.diff Remove overflow checks from ConstProp. 2023-02-18 21:35:02 +00:00
inherit_overflow.rs Remove overflow checks from ConstProp. 2023-02-18 21:35:02 +00:00
invalid_constant.main.ConstProp.diff Replace ZST operands and debuginfo by constants. 2023-03-13 18:19:57 +00:00
invalid_constant.main.RemoveZsts.diff Generalize operation. 2023-03-13 18:22:55 +00:00
invalid_constant.rs Replace ZST operands and debuginfo by constants. 2023-03-13 18:19:57 +00:00
issue_66971.main.ConstProp.diff Generalize operation. 2023-03-13 18:22:55 +00:00
issue_66971.rs
issue_67019.main.ConstProp.diff Generalize operation. 2023-03-13 18:22:55 +00:00
issue_67019.rs
large_array_index.main.ConstProp.32bit.diff
large_array_index.main.ConstProp.64bit.diff
large_array_index.rs
mult_by_zero.rs
mult_by_zero.test.ConstProp.diff Implement SSA CopyProp pass. 2023-01-27 18:22:45 +00:00
mutable_variable_aggregate_mut_ref.main.ConstProp.diff Simplify construction of replacement map. 2023-02-05 11:44:18 +00:00
mutable_variable_aggregate_mut_ref.rs
mutable_variable_aggregate_partial_read.main.ConstProp.diff
mutable_variable_aggregate_partial_read.rs
mutable_variable_aggregate.main.ConstProp.diff Run SROA to fixpoint. 2023-02-05 12:08:42 +00:00
mutable_variable_aggregate.rs
mutable_variable_no_prop.main.ConstProp.diff
mutable_variable_no_prop.rs
mutable_variable_unprop_assign.main.ConstProp.diff Simplify construction of replacement map. 2023-02-05 11:44:18 +00:00
mutable_variable_unprop_assign.rs
mutable_variable.main.ConstProp.diff
mutable_variable.rs
optimizes_into_variable.main.ConstProp.32bit.diff Bless 32bit tests. 2023-02-05 13:51:37 +00:00
optimizes_into_variable.main.ConstProp.64bit.diff Fix SROA without deaggregation. 2023-02-05 08:37:03 +00:00
optimizes_into_variable.main.PreCodegen.after.32bit.mir Bless 32bit tests. 2023-02-05 13:51:37 +00:00
optimizes_into_variable.main.PreCodegen.after.64bit.mir Fix SROA without deaggregation. 2023-02-05 08:37:03 +00:00
optimizes_into_variable.main.ScalarReplacementOfAggregates.32bit.diff Bless 32bit tests. 2023-02-05 13:51:37 +00:00
optimizes_into_variable.main.ScalarReplacementOfAggregates.64bit.diff Simplify construction of replacement map. 2023-02-05 11:44:18 +00:00
optimizes_into_variable.main.SimplifyLocals-final.after.32bit.mir Bless 32bit tests. 2023-02-05 13:51:37 +00:00
optimizes_into_variable.main.SimplifyLocals-final.after.64bit.mir Fix SROA without deaggregation. 2023-02-05 08:37:03 +00:00
optimizes_into_variable.rs
read_immutable_static.main.ConstProp.diff
read_immutable_static.rs
ref_deref_project.main.ConstProp.diff Make tests unit. 2023-01-27 18:22:44 +00:00
ref_deref_project.rs Make tests unit. 2023-01-27 18:22:44 +00:00
ref_deref.main.ConstProp.diff Make tests unit. 2023-01-27 18:22:44 +00:00
ref_deref.rs Make tests unit. 2023-01-27 18:22:44 +00:00
reify_fn_ptr.main.ConstProp.diff
reify_fn_ptr.rs
repeat.main.ConstProp.32bit.diff
repeat.main.ConstProp.64bit.diff
repeat.rs
return_place.add.ConstProp.diff
return_place.add.PreCodegen.before.mir
return_place.rs
scalar_literal_propagation.main.ConstProp.diff Generalize operation. 2023-03-13 18:22:55 +00:00
scalar_literal_propagation.rs
slice_len.main.ConstProp.32bit.diff Make tests unit. 2023-01-27 18:22:44 +00:00
slice_len.main.ConstProp.64bit.diff Make tests unit. 2023-01-27 18:22:44 +00:00
slice_len.rs Make tests unit. 2023-01-27 18:22:44 +00:00
switch_int.main.ConstProp.diff
switch_int.main.SimplifyConstCondition-after-const-prop.diff
switch_int.rs
transmute.from_char.ConstProp.diff Add CastKind::Transmute to MIR 2023-03-22 15:15:41 -07:00
transmute.invalid_bool.ConstProp.diff Add CastKind::Transmute to MIR 2023-03-22 15:15:41 -07:00
transmute.invalid_char.ConstProp.diff Add CastKind::Transmute to MIR 2023-03-22 15:15:41 -07:00
transmute.less_as_i8.ConstProp.diff Add CastKind::Transmute to MIR 2023-03-22 15:15:41 -07:00
transmute.rs Add CastKind::Transmute to MIR 2023-03-22 15:15:41 -07:00
transmute.undef_union_as_integer.ConstProp.diff Add CastKind::Transmute to MIR 2023-03-22 15:15:41 -07:00
transmute.unreachable_box.ConstProp.diff Add CastKind::Transmute to MIR 2023-03-22 15:15:41 -07:00
transmute.unreachable_direct.ConstProp.diff Add CastKind::Transmute to MIR 2023-03-22 15:15:41 -07:00
transmute.unreachable_mut.ConstProp.diff Add CastKind::Transmute to MIR 2023-03-22 15:15:41 -07:00
transmute.unreachable_ref.ConstProp.diff Add CastKind::Transmute to MIR 2023-03-22 15:15:41 -07:00
transmute.valid_char.ConstProp.diff Add CastKind::Transmute to MIR 2023-03-22 15:15:41 -07:00
tuple_literal_propagation.main.ConstProp.diff Generalize operation. 2023-03-13 18:22:55 +00:00
tuple_literal_propagation.rs