diff options
| author | James Miller <james@aatch.net> | 2015-01-21 00:46:02 +1300 |
|---|---|---|
| committer | James Miller <james@aatch.net> | 2015-01-21 00:46:02 +1300 |
| commit | a729a404945de10f99e2530a5c28952996532b29 (patch) | |
| tree | a4bd2a7171deb6edf5bab96ecc4c3896c5ed2a7f /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | 65b61ffb3f55c996eceded6c91281911b671d978 (diff) | |
| download | rust-a729a404945de10f99e2530a5c28952996532b29.tar.gz rust-a729a404945de10f99e2530a5c28952996532b29.zip | |
Use assume to inform the optimiser about refcount invariants
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.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
