rust/library/core/src/slice
bors 7a08f84627 Auto merge of #126578 - scottmcm:inlining-bonuses-too, r=davidtwco
Account for things that optimize out in inlining costs

This updates the MIR inlining `CostChecker` to have both bonuses and penalties, rather than just penalties.

That lets us add bonuses for some things where we want to encourage inlining without risking wrapping into a gigantic cost.  For example, `switchInt(const …)` we give an inlining bonus because codegen will actually eliminate the branch (and associated dead blocks) once it's monomorphized, so measuring both sides of the branch gives an unrealistically-high cost to it.  Similarly, an `unreachable` terminator gets a small bonus, because whatever branch leads there doesn't actually exist post-codegen.
2024-06-21 02:06:27 +00:00
..
iter Shrink some slice iterator MIR 2024-06-19 21:35:37 -07:00
sort Add missing CopyMarker impl 2024-06-17 22:32:01 +02:00
ascii.rs Auto merge of #126273 - pietroalbini:pa-bootstrap-update, r=Mark-Simulacrum 2024-06-12 18:15:32 +00:00
cmp.rs Refer to "slice" instead of "vector" in Ord and PartialOrd trait impl of slice 2024-03-06 10:13:05 +01:00
index.rs Redo SliceIndex implementations 2024-06-15 17:39:25 -07:00
iter.rs replace version placeholder 2024-06-11 16:52:02 +02:00
memchr.rs Use usize::repeat_u8 instead of implementing repeat_byte in memchr.rs 2023-11-26 12:27:56 +00:00
mod.rs Auto merge of #124032 - Voultapher:a-new-sort, r=thomcc 2024-06-20 20:40:43 +00:00
raw.rs Rollup merge of #123374 - mgeier:doc-slice-from-raw-parts, r=scottmcm 2024-06-12 03:57:18 -07:00
rotate.rs make ptr::rotate smaller when using optimize_for_size 2024-05-29 13:51:55 +02:00
specialize.rs Remove size_of == 1 case from fill specialization. 2021-08-09 19:25:28 +02:00