about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2021-01-08 13:02:27 -0800
committerJosh Stone <jistone@redhat.com>2021-01-11 17:43:10 -0800
commitd85df44e8d54f92a23d8734cb05d14c75697a2ca (patch)
treef409737c4e9015048c2117c734002a08e960b120 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent9aa7dd1e6afc0f8c944c63458fba0ea19ae2c392 (diff)
downloadrust-d85df44e8d54f92a23d8734cb05d14c75697a2ca.tar.gz
rust-d85df44e8d54f92a23d8734cb05d14c75697a2ca.zip
Specialize Rc/Arc::make_mut clones to try to avoid locals
As we did with `Box`, we can allocate an uninitialized `Rc` or `Arc`
beforehand, giving the optimizer a chance to skip the local value for
regular clones, or avoid any local altogether for `T: Copy`.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions