You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of rust-lang#123244 - Mark-Simulacrum:share-inline-never-generics, r=<try>
Enable -Zshare-generics for inline(never) functions
This avoids inlining cross-crate generic items when possible that are already marked inline(never), implying that the author is not intending for the function to be inlined by callers. As such, having a local copy may make it easier for LLVM to optimize but mostly just adds to binary bloat and codegen time (in theory, TBD on in practice).
It might also make sense it expand this with other heuristics (e.g., #[cold]).
FWIW, I expect that doing cleanup in where we make the decision what should/shouldn't be shared is also a good idea. Way too much code needed to be tweaked to check this.
r? `@Mark-Simulacrum` for perf at first
0 commit comments