diff options
| author | bors <bors@rust-lang.org> | 2015-01-11 06:55:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-01-11 06:55:33 +0000 |
| commit | d2d35db570f0d5da1b0b829e38b495e763a0a60b (patch) | |
| tree | 35c4b1d18e353655ce37f975a3a4a9bdf00ad3e4 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 431105a70acaf6e0a1d64b6dd3f69563d6694287 (diff) | |
| parent | 6f1b06eb6546ab4808614dfe7807277419b485aa (diff) | |
| download | rust-d2d35db570f0d5da1b0b829e38b495e763a0a60b.tar.gz rust-d2d35db570f0d5da1b0b829e38b495e763a0a60b.zip | |
auto merge of #20755 : dotdash/rust/fca, r=Aatch
Currently, small aggregates are passed to functions as immediate values
as is. This has two consequences.
One is that aggregates are passed component-wise by LLVM, so e.g. a
struct containing four u8 values (e.g. an RGBA struct) will be passed as
four individual values.
The other is that LLVM isn't very good at optimizing loads/stores of
first class attributes. What clang does is converting the aggregate to
an appropriately sized integer type (e.g. i32 for the four u8 values),
and using that for the function argument. This allows LLVM to create
code that is a lot better.
Fixes #20450 #20149 #16506 #13927
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
