rust/compiler/rustc_const_eval/src/util
bors e9c965df7b Auto merge of #128812 - nnethercote:shrink-TyKind-FnPtr, r=compiler-errors
Shrink `TyKind::FnPtr`.

By splitting the `FnSig` within `TyKind::FnPtr` into `FnSigTys` and `FnHeader`, which can be packed more efficiently. This reduces the size of the hot `TyKind` type from 32 bytes to 24 bytes on 64-bit platforms. This reduces peak memory usage by a few percent on some benchmarks. It also reduces cache misses and page faults similarly, though this doesn't translate to clear cycles or wall-time improvements on CI.

r? `@compiler-errors`
2024-08-14 00:56:53 +00:00
..
alignment.rs Rename struct_tail_erasing_lifetimes to struct_tail_for_codegen 2024-08-08 12:15:16 -04:00
caller_location.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
check_validity_requirement.rs pass the right ParamEnv to might_permit_raw_init_strict 2024-08-06 01:53:50 +02:00
compare_types.rs Now that inlining, mir validation and const eval all use reveal-all, we won't be constraining hidden types here anymore 2024-02-28 09:59:50 +00:00
mod.rs Remove Rvalue::CheckedBinaryOp 2024-05-17 20:33:02 -07:00
type_name.rs Shrink TyKind::FnPtr. 2024-08-09 14:33:25 +10:00