Skip to content

Commit 7e03358

Browse files
committed
Auto merge of #62692 - eddyb:precompute-niches, r=<try>
rustc: precompute the largest Niche and store it in LayoutDetails. Since we only ever can use at most one niche, it makes sense to just store that in the layout, for the simplest caching (especially as it's almost trivial to compute). There might be a speedup from this, but even if it's marginal now, the caching would be a more significant benefit for future optimization attempts.
2 parents 92b0f52 + 88eced5 commit 7e03358

File tree

2 files changed

+171
-127
lines changed

2 files changed

+171
-127
lines changed

0 commit comments

Comments
 (0)