about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorJames Miller <james@aatch.net>2015-01-21 00:46:02 +1300
committerJames Miller <james@aatch.net>2015-01-21 00:46:02 +1300
commita729a404945de10f99e2530a5c28952996532b29 (patch)
treea4bd2a7171deb6edf5bab96ecc4c3896c5ed2a7f /src/rustllvm/ExecutionEngineWrapper.cpp
parent65b61ffb3f55c996eceded6c91281911b671d978 (diff)
downloadrust-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