about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorBjörn Steinbrink <bsteinbr@gmail.com>2015-08-25 18:33:55 +0200
committerBjörn Steinbrink <bsteinbr@gmail.com>2015-08-25 18:37:02 +0200
commit9a15d664a67137028bb0d32eab56698b18356e6d (patch)
tree99ed853ae3a1045e95472824e57464ac2868ee34 /src/libstd/sys/unix/stack_overflow.rs
parent727a5d543d662231224002c3345f78b0bebf8c6b (diff)
downloadrust-9a15d664a67137028bb0d32eab56698b18356e6d.tar.gz
rust-9a15d664a67137028bb0d32eab56698b18356e6d.zip
Omit lifetime intrinsics for function arguments and similar top-level items
Function arguments are live for the whole function scope, so adding
lifetime intrinsics around them adds no value. The same is true for drop
hint allocas and everything else that goes directly through
lvalue_scratch_datum. So the easiest fix is to emit lifetime intrinsics
only for lvalue datums that are created in to_lvalue_datum_in_scope().

The reduces peak memory usage and LLVM times by about 1-4%, depending on
the crate.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions