diff options
| author | Léo Lanteri Thauvin <leseulartichaut@gmail.com> | 2021-08-03 02:00:18 +0200 |
|---|---|---|
| committer | Léo Lanteri Thauvin <leseulartichaut@gmail.com> | 2021-08-03 22:04:37 +0200 |
| commit | 2b169ccc9611ce92d3c5d747fbd99c3e7a990cf0 (patch) | |
| tree | 303a84cd9c7841f98d48fcbc1d0dc7f202984b23 /compiler/rustc_codegen_llvm/src | |
| parent | e3b1c12becebd21d88ca9f4364d7db8d1d380c18 (diff) | |
| download | rust-2b169ccc9611ce92d3c5d747fbd99c3e7a990cf0.tar.gz rust-2b169ccc9611ce92d3c5d747fbd99c3e7a990cf0.zip | |
Only compute `is_freeze` for layout-constrained ADTs
Places are usually shallow and quick to visit. By contrast, computing `is_freeze` can be much costlier, involving inference and trait solving. Making sure to call `is_freeze` only when necessary should be beneficial for performance in most cases.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
