rust/compiler/rustc_mir_transform/src
bors 48132caac2 Auto merge of #94427 - cjgillot:inline-fresh-expn, r=oli-obk
Only create a single expansion for each inline integration.

The inlining integrator used to create one expansion for each span from the callee body.
This PR reverses the logic to create a single expansion for the whole call,
which is more consistent with how macro expansions work for macros.

This should remove the large memory regression in #91743.
2022-02-28 08:25:26 +00:00
..
coverage Enable rustc_pass_by_value for Span 2022-02-25 08:00:53 -05:00
inline Adopt let else in more places 2022-02-19 17:27:43 +01:00
abort_unwinding_calls.rs Adopt let else in more places 2022-02-19 17:27:43 +01:00
add_call_guards.rs
add_moves_for_packed_drops.rs Adopt let else in more places 2022-02-19 17:27:43 +01:00
add_retag.rs Remove in_band_lifetimes from rustc_mir_transform 2021-12-07 21:04:40 -08:00
check_const_item_mutation.rs rustc_errors: let DiagnosticBuilder::emit return a "guarantee of emission". 2022-02-23 06:38:52 +00:00
check_packed_ref.rs give more help in the unaligned_references lint 2021-12-09 16:48:51 -05:00
check_unsafety.rs Improve unused_unsafe lint 2022-02-20 21:00:12 +01:00
cleanup_post_borrowck.rs
const_debuginfo.rs Remove in_band_lifetimes from rustc_mir_transform 2021-12-07 21:04:40 -08:00
const_goto.rs Remove in_band_lifetimes from rustc_mir_transform 2021-12-07 21:04:40 -08:00
const_prop.rs use List<Ty<'tcx>> for tuples 2022-02-21 07:09:11 +01:00
deaggregator.rs Adopt let else in more places 2022-02-19 17:27:43 +01:00
deduplicate_blocks.rs Remove in_band_lifetimes from rustc_mir_transform 2021-12-07 21:04:40 -08:00
dest_prop.rs Remove an unnecessary restriction in dest_prop 2022-02-24 09:47:13 -05:00
dump_mir.rs Inline on_mir_pass and add inline to dump_mir 2021-10-14 15:26:59 -05:00
early_otherwise_branch.rs Overhaul TyS and Ty. 2022-02-15 16:03:24 +11:00
elaborate_drops.rs Adopt let else in more places 2022-02-19 17:27:43 +01:00
function_item_references.rs remove TyS::same_type 2022-02-01 11:21:26 +01:00
generator.rs Rollup merge of #94087 - tmiasko:rm-ignore-borrow-on-drop, r=jackh726 2022-02-26 07:52:42 +01:00
inline.rs Only create a single expansion for each inline integration. 2022-02-27 19:05:56 +01:00
instcombine.rs Remove in_band_lifetimes from rustc_mir_transform 2021-12-07 21:04:40 -08:00
lib.rs Switch bootstrap cfgs 2022-02-25 08:00:52 -05:00
lower_intrinsics.rs Adopt let else in more places 2022-02-19 17:27:43 +01:00
lower_slice_len.rs Adopt let else in more places 2022-02-19 17:27:43 +01:00
marker.rs Add pass for simple phase change 2021-12-02 17:31:38 -08:00
match_branches.rs Update passes with new interface 2021-12-02 17:31:38 -08:00
multiple_return_terminators.rs Update passes with new interface 2021-12-02 17:31:38 -08:00
normalize_array_len.rs Rollup merge of #94011 - est31:let_else, r=lcnr 2022-02-17 23:00:59 +01:00
nrvo.rs Adopt let else in more places 2022-02-19 17:27:43 +01:00
pass_manager.rs Remove in_band_lifetimes from rustc_mir_transform 2021-12-07 21:04:40 -08:00
remove_false_edges.rs Separate RemoveFalseEdges from SimplifyBranches 2021-11-30 17:14:48 -08:00
remove_noop_landing_pads.rs Remove deprecated LLVM-style inline assembly 2022-01-12 18:51:31 +01:00
remove_storage_markers.rs Update passes with new interface 2021-12-02 17:31:38 -08:00
remove_uninit_drops.rs Auto merge of #93984 - nnethercote:ChunkedBitSet, r=Mark-Simulacrum 2022-02-23 01:26:07 +00:00
remove_unneeded_drops.rs Add rationale for RemoveUnneededDrops 2021-11-30 17:25:30 -08:00
remove_zsts.rs Adopt let else in more places 2022-02-19 17:27:43 +01:00
required_consts.rs Overhaul Const. 2022-02-15 16:19:59 +11:00
reveal_all.rs Overhaul TyS and Ty. 2022-02-15 16:03:24 +11:00
separate_const_switch.rs Remove deprecated LLVM-style inline assembly 2022-01-12 18:51:31 +01:00
shim.rs use List<Ty<'tcx>> for tuples 2022-02-21 07:09:11 +01:00
simplify_branches.rs Auto merge of #91279 - scottmcm:small-refactor, r=nagisa 2021-12-06 13:04:18 +00:00
simplify_comparison_integral.rs Remove in_band_lifetimes from rustc_mir_transform 2021-12-07 21:04:40 -08:00
simplify_try.rs Remove deprecated LLVM-style inline assembly 2022-01-12 18:51:31 +01:00
simplify.rs Adopt let else in more places 2022-02-19 17:27:43 +01:00
uninhabited_enum_branching.rs Extend uninhabited match branch optimization to also work on fallthrough. 2022-02-18 09:14:21 -05:00
unreachable_prop.rs Remove deprecated LLVM-style inline assembly 2022-01-12 18:51:31 +01:00