about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorLéo Lanteri Thauvin <leseulartichaut@gmail.com>2021-08-03 02:00:18 +0200
committerLéo Lanteri Thauvin <leseulartichaut@gmail.com>2021-08-03 22:04:37 +0200
commit2b169ccc9611ce92d3c5d747fbd99c3e7a990cf0 (patch)
tree303a84cd9c7841f98d48fcbc1d0dc7f202984b23 /compiler/rustc_codegen_llvm/src
parente3b1c12becebd21d88ca9f4364d7db8d1d380c18 (diff)
downloadrust-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