about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorJames Miller <james@aatch.net>2014-12-20 18:53:37 +1300
committerJames Miller <james@aatch.net>2014-12-23 12:29:52 +1300
commitf1a3ff047e386d19238a880b42eb4edacbee0c1b (patch)
treef6a85e57fa6e9174314eb195a53d5cb135b84b0f /src/rustllvm/RustWrapper.cpp
parent2f3cff6956d56048ef7afb6d33e17cbdb2dcf038 (diff)
downloadrust-f1a3ff047e386d19238a880b42eb4edacbee0c1b.tar.gz
rust-f1a3ff047e386d19238a880b42eb4edacbee0c1b.zip
Use type-alignment-sized integer for discriminant types
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 type-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