Skip to content

Commit

Permalink
Rollup merge of rust-lang#62692 - eddyb:precompute-niches, r=oli-obk
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Centril authored Jul 26, 2019
2 parents d76a519 + 88eced5 commit e13ace7
Show file tree
Hide file tree
Showing 2 changed files with 171 additions and 127 deletions.
Loading

0 comments on commit e13ace7

Please sign in to comment.