about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-01-21 09:16:01 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-01-21 09:16:01 -0800
commit229243c136ddeb653c6ad5bcb451a78fef9e7a99 (patch)
treeef3353036fa9f4edc604aa9099f2964f8d3cfa8c /src/libstd
parenta6780d8c6be311cd9a2e0cdda726469a04d21a9c (diff)
parenta7525bc4c8eb8507a5c248d29286e77133217cf3 (diff)
downloadrust-229243c136ddeb653c6ad5bcb451a78fef9e7a99.tar.gz
rust-229243c136ddeb653c6ad5bcb451a78fef9e7a99.zip
rollup merge of #21418: Aatch/assume-refcount
The reference count can never be 0, unless we're about to drop the data
completely. Using the `assume` intrinsic allows us to inform LLVM about
that invariant, meaning it can avoid unnecessary drops.

---

Before and after IR: https://gist.github.com/Aatch/3786d20df2edaad6a0e8

Generated from the example in #13018

Fixes #13018
Diffstat (limited to 'src/libstd')
0 files changed, 0 insertions, 0 deletions