about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2022-11-23 19:19:06 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2022-11-24 00:03:51 +0300
commitf0843b89d1336962e9cb0572a40a790cd60ef4d9 (patch)
tree1dbaf038a39234324648fea240e0f37ee5960a62 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent3f20f4ac42be55f309224ef365dfa2ca64359e07 (diff)
downloadrust-f0843b89d1336962e9cb0572a40a790cd60ef4d9.tar.gz
rust-f0843b89d1336962e9cb0572a40a790cd60ef4d9.zip
effective visibility: Remove questionable optimizations
First, they require eagerly calculating private visibility (current normal module), which is somewhat expensive.
Private visibilities are also lost once calculated, instead of being cached in the table.

Second, I cannot prove that the optimizations are correct.
Maybe they can be partially reinstated in the future in cases when it's cheap and provably correct to do them.
They will also probably be merged into `fn update` in that case.

Partially fixes https://github.com/rust-lang/rust/issues/104249
Fixes https://github.com/rust-lang/rust/issues/104539
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions