diff options
| author | bors <bors@rust-lang.org> | 2014-12-24 16:21:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-12-24 16:21:23 +0000 |
| commit | 29ad8539b9c408eebbe7252f74c754f4e0a41d46 (patch) | |
| tree | 0eb0bd2ba9a26f65d34680724c313320471af3eb /src/rustllvm/RustWrapper.cpp | |
| parent | e64a8193b02ce72ef183274994a25eae281cb89c (diff) | |
| parent | b473311ad8161c8d16412acb54f4188e737e4ca4 (diff) | |
| download | rust-29ad8539b9c408eebbe7252f74c754f4e0a41d46.tar.gz rust-29ad8539b9c408eebbe7252f74c754f4e0a41d46.zip | |
auto merge of #20060 : Aatch/rust/enum-repr, r=alexcrichton
The previous behaviour of using the smallest type possible caused LLVM to treat padding too conservatively, causing poor codegen. This commit changes the behaviour to use an alignment-sized integer as the discriminant. This keeps types the same size, but helps LLVM understand the data structure a little better, resulting in better codegen.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
