diff options
| author | James Miller <james@aatch.net> | 2014-12-20 18:53:37 +1300 |
|---|---|---|
| committer | James Miller <james@aatch.net> | 2014-12-23 12:29:52 +1300 |
| commit | f1a3ff047e386d19238a880b42eb4edacbee0c1b (patch) | |
| tree | f6a85e57fa6e9174314eb195a53d5cb135b84b0f /src/rustllvm/RustWrapper.cpp | |
| parent | 2f3cff6956d56048ef7afb6d33e17cbdb2dcf038 (diff) | |
| download | rust-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
