about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-12-24 16:21:23 +0000
committerbors <bors@rust-lang.org>2014-12-24 16:21:23 +0000
commit29ad8539b9c408eebbe7252f74c754f4e0a41d46 (patch)
tree0eb0bd2ba9a26f65d34680724c313320471af3eb /src/rustllvm/RustWrapper.cpp
parente64a8193b02ce72ef183274994a25eae281cb89c (diff)
parentb473311ad8161c8d16412acb54f4188e737e4ca4 (diff)
downloadrust-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