This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit dd153da
committed
Auto merge of rust-lang#137567 - FractalFir:inline_hints, r=<try>
[Perf experiment] Inline hints on some small, hot functions
During some local profiling, I identified a few tiny hot functions which did not get inlined.
From some local perf runs, it looks like adding inline hints to them is beneficial.

I have checked this change both with and without LTO, and I still see a perf difference between the version with and without inline hints. So, this *may* be a good change.
However, since I can't run the compiler PGO setup locally, I'll need a perf run to see if this improvement will be seen in the CI build of `rustc`.
There is a chance this optimization is already done by PGO(in which case this PR is less useful), but I still want to see if this can have any real effect.2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2427 | 2427 | | |
2428 | 2428 | | |
2429 | 2429 | | |
| 2430 | + | |
2430 | 2431 | | |
2431 | 2432 | | |
2432 | 2433 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| 443 | + | |
443 | 444 | | |
444 | 445 | | |
445 | 446 | | |
446 | | - | |
| 447 | + | |
447 | 448 | | |
448 | 449 | | |
449 | 450 | | |
| |||
0 commit comments