rust/tests/mir-opt/inline
Scott McMurray 23c8ed14c9 Avoid MIR bloat in inlining
In 126578 we ended up with more binary size increases than expected.

This change attempts to avoid inlining large things into small things, to avoid that kind of increase, in cases when top-down inlining will still be able to do that inlining later.
2024-07-01 05:17:13 -07:00
..
asm_unwind.main.Inline.panic-abort.diff make MIR less verbose 2023-08-24 14:26:26 +02:00
asm_unwind.main.Inline.panic-unwind.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
asm_unwind.rs At debuginfo=0, don't inline debuginfo when inlining 2024-04-18 09:35:35 -07:00
caller_with_trivial_bound.foo.Inline.panic-unwind.diff Bless tests 2023-06-23 18:36:25 +01:00
caller_with_trivial_bound.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
cycle.f.Inline.panic-abort.diff Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
cycle.f.Inline.panic-unwind.diff make MIR less verbose 2023-08-24 14:26:26 +02:00
cycle.g.Inline.panic-abort.diff Use a better set of targets for blessing mir-opt tests 2024-02-06 23:36:05 -05:00
cycle.g.Inline.panic-unwind.diff Use a better set of targets for blessing mir-opt tests 2024-02-06 23:36:05 -05:00
cycle.main.Inline.panic-abort.diff Explicitly don't inline user-written rust-call fns 2023-08-03 18:35:56 +00:00
cycle.main.Inline.panic-unwind.diff make MIR less verbose 2023-08-24 14:26:26 +02:00
cycle.rs At debuginfo=0, don't inline debuginfo when inlining 2024-04-18 09:35:35 -07:00
dont_ice_on_generic_rust_call.call.Inline.panic-abort.diff bless 2023-08-03 18:42:12 +00:00
dont_ice_on_generic_rust_call.call.Inline.panic-unwind.diff make MIR less verbose 2023-08-24 14:26:26 +02:00
dont_ice_on_generic_rust_call.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
dyn_trait.get_query.Inline.panic-abort.diff Turn copy into moves during DSE. 2023-07-19 09:59:12 +00:00
dyn_trait.get_query.Inline.panic-unwind.diff Turn copy into moves during DSE. 2023-07-19 09:59:12 +00:00
dyn_trait.mk_cycle.Inline.panic-abort.diff Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
dyn_trait.mk_cycle.Inline.panic-unwind.diff Bless tests 2023-06-23 18:36:25 +01:00
dyn_trait.rs At debuginfo=0, don't inline debuginfo when inlining 2024-04-18 09:35:35 -07:00
dyn_trait.try_execute_query.Inline.panic-abort.diff Turn copy into moves during DSE. 2023-07-19 09:59:12 +00:00
dyn_trait.try_execute_query.Inline.panic-unwind.diff Turn copy into moves during DSE. 2023-07-19 09:59:12 +00:00
exponential_runtime.main.Inline.panic-abort.diff Fix insertion of statements to be executed along return edge in inlining 2023-11-20 09:27:30 +01:00
exponential_runtime.main.Inline.panic-unwind.diff Fix insertion of statements to be executed along return edge in inlining 2023-11-20 09:27:30 +01:00
exponential_runtime.rs address review comments 2023-10-25 15:25:38 -07:00
indirect_destination.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
inline_any_operand.bar.Inline.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
inline_any_operand.rs At debuginfo=0, don't inline debuginfo when inlining 2024-04-18 09:35:35 -07:00
inline_async.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
inline_box_fn.call.Inline.panic-abort.diff bless 2023-08-03 18:42:12 +00:00
inline_box_fn.call.Inline.panic-unwind.diff make MIR less verbose 2023-08-24 14:26:26 +02:00
inline_box_fn.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
inline_closure_borrows_arg.foo.Inline.after.mir At debuginfo=0, don't inline debuginfo when inlining 2024-04-18 09:35:35 -07:00
inline_closure_borrows_arg.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
inline_closure_captures.foo.Inline.after.mir At debuginfo=0, don't inline debuginfo when inlining 2024-04-18 09:35:35 -07:00
inline_closure_captures.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
inline_closure.foo.Inline.after.mir adjust how closure/generator types and rvalues are printed 2023-09-21 22:20:58 +02:00
inline_closure.rs At debuginfo=0, don't inline debuginfo when inlining 2024-04-18 09:35:35 -07:00
inline_compatibility.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
inline_coroutine.main.Inline.panic-abort.diff Error on using yield without also using #[coroutine] on the closure 2024-04-24 08:05:29 +00:00
inline_coroutine.main.Inline.panic-unwind.diff Error on using yield without also using #[coroutine] on the closure 2024-04-24 08:05:29 +00:00
inline_coroutine.rs Error on using yield without also using #[coroutine] on the closure 2024-04-24 08:05:29 +00:00
inline_cycle_generic.main.Inline.panic-abort.diff Use a better set of targets for blessing mir-opt tests 2024-02-06 23:36:05 -05:00
inline_cycle_generic.main.Inline.panic-unwind.diff Use a better set of targets for blessing mir-opt tests 2024-02-06 23:36:05 -05:00
inline_cycle_generic.rs rustfmt tests/mir-opt. 2024-06-03 14:17:16 +10:00
inline_cycle.one.Inline.panic-abort.diff Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
inline_cycle.one.Inline.panic-unwind.diff Bless tests 2023-06-23 18:36:25 +01:00
inline_cycle.rs rustfmt tests/mir-opt. 2024-06-03 14:17:16 +10:00
inline_cycle.two.Inline.panic-abort.diff Explicitly don't inline user-written rust-call fns 2023-08-03 18:35:56 +00:00
inline_cycle.two.Inline.panic-unwind.diff Explicitly don't inline user-written rust-call fns 2023-08-03 18:35:56 +00:00
inline_diverging.f.Inline.panic-abort.diff Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
inline_diverging.f.Inline.panic-unwind.diff Bless tests 2023-06-23 18:36:25 +01:00
inline_diverging.g.Inline.panic-abort.diff lower ExprKind::Use, LogicalOp::Or and UnOp::Not 2023-08-30 17:24:10 +08:00
inline_diverging.g.Inline.panic-unwind.diff lower ExprKind::Use, LogicalOp::Or and UnOp::Not 2023-08-30 17:24:10 +08:00
inline_diverging.h.Inline.panic-abort.diff Sandwich MIR optimizations between DSE. 2024-01-11 09:58:19 +00:00
inline_diverging.h.Inline.panic-unwind.diff Sandwich MIR optimizations between DSE. 2024-01-11 09:58:19 +00:00
inline_diverging.rs At debuginfo=0, don't inline debuginfo when inlining 2024-04-18 09:35:35 -07:00
inline_instruction_set.default.Inline.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
inline_instruction_set.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
inline_instruction_set.t32.Inline.diff Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
inline_more_in_non_inline.marked_inline_direct.Inline.after.panic-abort.mir Avoid MIR bloat in inlining 2024-07-01 05:17:13 -07:00
inline_more_in_non_inline.marked_inline_direct.Inline.after.panic-unwind.mir Avoid MIR bloat in inlining 2024-07-01 05:17:13 -07:00
inline_more_in_non_inline.marked_inline_indirect.Inline.after.panic-abort.mir Avoid MIR bloat in inlining 2024-07-01 05:17:13 -07:00
inline_more_in_non_inline.marked_inline_indirect.Inline.after.panic-unwind.mir Avoid MIR bloat in inlining 2024-07-01 05:17:13 -07:00
inline_more_in_non_inline.monomorphic_not_inline.Inline.after.panic-abort.mir Avoid MIR bloat in inlining 2024-07-01 05:17:13 -07:00
inline_more_in_non_inline.monomorphic_not_inline.Inline.after.panic-unwind.mir Avoid MIR bloat in inlining 2024-07-01 05:17:13 -07:00
inline_more_in_non_inline.rs Avoid MIR bloat in inlining 2024-07-01 05:17:13 -07:00
inline_options.main.Inline.after.panic-abort.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
inline_options.main.Inline.after.panic-unwind.mir Bless tests 2023-06-23 18:36:25 +01:00
inline_options.rs rustfmt tests/mir-opt. 2024-06-03 14:17:16 +10:00
inline_retag.bar.Inline.after.mir MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
inline_retag.rs At debuginfo=0, don't inline debuginfo when inlining 2024-04-18 09:35:35 -07:00
inline_shims.clone.Inline.panic-abort.diff Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
inline_shims.clone.Inline.panic-unwind.diff Bless tests 2023-06-23 18:36:25 +01:00
inline_shims.drop.Inline.panic-abort.diff Avoid MIR bloat in inlining 2024-07-01 05:17:13 -07:00
inline_shims.drop.Inline.panic-unwind.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
inline_shims.rs FileCheck inline_shims. 2023-10-19 15:51:54 +00:00
inline_specialization.main.Inline.panic-abort.diff Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
inline_specialization.main.Inline.panic-unwind.diff Bless tests 2023-06-23 18:36:25 +01:00
inline_specialization.rs rustfmt tests/mir-opt. 2024-06-03 14:17:16 +10:00
inline_trait_method_2.rs At debuginfo=0, don't inline debuginfo when inlining 2024-04-18 09:35:35 -07:00
inline_trait_method_2.test2.Inline.after.panic-abort.mir Turn copy into moves during DSE. 2023-07-19 09:59:12 +00:00
inline_trait_method_2.test2.Inline.after.panic-unwind.mir Turn copy into moves during DSE. 2023-07-19 09:59:12 +00:00
inline_trait_method.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
inline_trait_method.test.Inline.after.panic-abort.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
inline_trait_method.test.Inline.after.panic-unwind.mir Bless tests 2023-06-23 18:36:25 +01:00
issue_58867_inline_as_ref_as_mut.a.Inline.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
issue_58867_inline_as_ref_as_mut.b.Inline.after.mir Enable GVN by default. 2023-12-24 20:08:57 +00:00
issue_58867_inline_as_ref_as_mut.c.Inline.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
issue_58867_inline_as_ref_as_mut.d.Inline.after.mir Enable GVN by default. 2023-12-24 20:08:57 +00:00
issue_58867_inline_as_ref_as_mut.rs At debuginfo=0, don't inline debuginfo when inlining 2024-04-18 09:35:35 -07:00
issue_76997_inline_scopes_parenting.main.Inline.after.mir At debuginfo=0, don't inline debuginfo when inlining 2024-04-18 09:35:35 -07:00
issue_76997_inline_scopes_parenting.rs rustfmt tests/mir-opt. 2024-06-03 14:17:16 +10:00
issue_78442.bar.Inline.panic-abort.diff Automatically enable cross-crate inlining for small functions 2023-10-17 19:53:51 -04:00
issue_78442.bar.Inline.panic-unwind.diff Automatically enable cross-crate inlining for small functions 2023-10-17 19:53:51 -04:00
issue_78442.bar.RevealAll.panic-abort.diff Unconditionally run RevealAll pass and run it earlier 2023-09-28 16:13:38 +00:00
issue_78442.bar.RevealAll.panic-unwind.diff Unconditionally run RevealAll pass and run it earlier 2023-09-28 16:13:38 +00:00
issue_78442.rs At debuginfo=0, don't inline debuginfo when inlining 2024-04-18 09:35:35 -07:00
issue_106141.outer.Inline.panic-abort.diff Delete ConstDebugInfo pass 2024-06-10 00:06:02 -07:00
issue_106141.outer.Inline.panic-unwind.diff Delete ConstDebugInfo pass 2024-06-10 00:06:02 -07:00
issue_106141.rs rustfmt tests/mir-opt. 2024-06-03 14:17:16 +10:00
polymorphic_recursion.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
rustc_no_mir_inline.caller.Inline.panic-abort.diff Add #[rustc_no_mir_inline] for standard library UB checks 2024-02-24 21:19:41 +01:00
rustc_no_mir_inline.caller.Inline.panic-unwind.diff Add #[rustc_no_mir_inline] for standard library UB checks 2024-02-24 21:19:41 +01:00
rustc_no_mir_inline.caller.PreCodegen.after.panic-abort.mir Add #[rustc_no_mir_inline] for standard library UB checks 2024-02-24 21:19:41 +01:00
rustc_no_mir_inline.caller.PreCodegen.after.panic-unwind.mir Add #[rustc_no_mir_inline] for standard library UB checks 2024-02-24 21:19:41 +01:00
rustc_no_mir_inline.rs Add #[rustc_no_mir_inline] for standard library UB checks 2024-02-24 21:19:41 +01:00
unchecked_shifts.rs Update tests/mir-opt/inline/unchecked_shifts.rs 2024-04-02 17:21:20 +00:00
unchecked_shifts.unchecked_shl_unsigned_smaller.Inline.panic-abort.diff Simplify the unchecked_sh[lr] ub-checks a bit 2024-05-25 15:58:26 -07:00
unchecked_shifts.unchecked_shl_unsigned_smaller.Inline.panic-unwind.diff Simplify the unchecked_sh[lr] ub-checks a bit 2024-05-25 15:58:26 -07:00
unchecked_shifts.unchecked_shl_unsigned_smaller.PreCodegen.after.panic-abort.mir Add assert_unsafe_precondition to unchecked_{add,sub,neg,mul,shl,shr} methods 2024-05-23 21:02:31 -04:00
unchecked_shifts.unchecked_shl_unsigned_smaller.PreCodegen.after.panic-unwind.mir Add assert_unsafe_precondition to unchecked_{add,sub,neg,mul,shl,shr} methods 2024-05-23 21:02:31 -04:00
unchecked_shifts.unchecked_shr_signed_bigger.Inline.panic-abort.diff Simplify the unchecked_sh[lr] ub-checks a bit 2024-05-25 15:58:26 -07:00
unchecked_shifts.unchecked_shr_signed_bigger.Inline.panic-unwind.diff Simplify the unchecked_sh[lr] ub-checks a bit 2024-05-25 15:58:26 -07:00
unchecked_shifts.unchecked_shr_signed_bigger.PreCodegen.after.panic-abort.mir Add assert_unsafe_precondition to unchecked_{add,sub,neg,mul,shl,shr} methods 2024-05-23 21:02:31 -04:00
unchecked_shifts.unchecked_shr_signed_bigger.PreCodegen.after.panic-unwind.mir Add assert_unsafe_precondition to unchecked_{add,sub,neg,mul,shl,shr} methods 2024-05-23 21:02:31 -04:00
unit_test.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
unsized_argument.caller.Inline.diff Do not create move paths that do not need dropping. 2023-10-21 10:32:59 +00:00
unsized_argument.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
unwrap_unchecked.rs Enable more mir-opt tests in debug builds 2024-03-22 20:14:39 -04:00
unwrap_unchecked.unwrap_unchecked.Inline.panic-abort.diff At debuginfo=0, don't inline debuginfo when inlining 2024-04-18 09:35:35 -07:00
unwrap_unchecked.unwrap_unchecked.Inline.panic-unwind.diff At debuginfo=0, don't inline debuginfo when inlining 2024-04-18 09:35:35 -07:00
unwrap_unchecked.unwrap_unchecked.PreCodegen.after.panic-abort.mir At debuginfo=0, don't inline debuginfo when inlining 2024-04-18 09:35:35 -07:00
unwrap_unchecked.unwrap_unchecked.PreCodegen.after.panic-unwind.mir At debuginfo=0, don't inline debuginfo when inlining 2024-04-18 09:35:35 -07:00