about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/cost_checker.rs
AgeCommit message (Collapse)AuthorLines
2025-03-12Allow more top-down inlining for single-BB calleesScott McMurray-21/+26
This means that things like `<usize as Step>::forward_unchecked` and `<PartialOrd for f32>::le` will inline even if we've already done a bunch of inlining to find the calls to them.
2024-11-18use `TypingEnv` when no `infcx` is availablelcnr-5/+5
the behavior of the type system not only depends on the current assumptions, but also the currentnphase of the compiler. This is mostly necessary as we need to decide whether and how to reveal opaque types. We track this via the `TypingMode`.
2024-09-09Reduce visibilities, and add `warn(unreachable_pub)`.Nicholas Nethercote-4/+4
Lots of unnecessary `pub`s in this crate. Most are downgraded to `pub(super)`, though some don't need any visibility.
2024-07-07Fix conflicts after rebaseMaybe Lapkin-1/+6
- r-l/r 126784 - r-l/r 127113 - r-l/miri 3562
2024-07-01Avoid MIR bloat in inliningScott McMurray-0/+31
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-06-23Make MIR inlining costs in build-std independent of config.tomlScott McMurray-7/+22
2024-06-19Give inlining bonuses to things that optimize outScott McMurray-20/+63
2024-06-19Give `CostChecker` both penalties and bonusesScott McMurray-15/+16
2024-02-12Make `is_intrinsic` query return the intrinsic nameOli Scherer-1/+1
2023-11-15Re-format code with new rustfmtMark Rousskov-1/+3
2023-10-21Make instance an option in CostChecker.Camille GILLOT-9/+13
2023-10-21Extract cost checker from inliner.Camille GILLOT-0/+94