diff options
| author | Björn Steinbrink <bsteinbr@gmail.com> | 2013-06-20 16:42:44 +0200 |
|---|---|---|
| committer | Björn Steinbrink <bsteinbr@gmail.com> | 2013-06-21 13:36:25 +0200 |
| commit | 4fb2c09541a5cb7ea91785a9c972ee57ff110c62 (patch) | |
| tree | 23fa558787b23396089e6791b9c28f0eab02ec1d /src/rt/rust_task.cpp | |
| parent | dc262d9aa742adadb92558a588aeaa57267fdee4 (diff) | |
| download | rust-4fb2c09541a5cb7ea91785a9c972ee57ff110c62.tar.gz rust-4fb2c09541a5cb7ea91785a9c972ee57ff110c62.zip | |
Avoid pointless allocas for "nil" return values
By using "void" instead of "{}" as the LLVM type for nil, we can avoid
the alloca/store/load sequence for the return value, resulting in less
and simpler IR code.
This reduces compile times by about 10%.
Diffstat (limited to 'src/rt/rust_task.cpp')
0 files changed, 0 insertions, 0 deletions
