diff options
| author | Björn Steinbrink <bsteinbr@gmail.com> | 2014-03-16 09:29:05 +0100 |
|---|---|---|
| committer | Björn Steinbrink <bsteinbr@gmail.com> | 2014-06-21 19:59:58 +0200 |
| commit | d747de5a927e405c7d12ae04d213bdc05add2032 (patch) | |
| tree | 79105f6a528eed06cb85780f8bf2fe4379a31b26 /src/test/compile-fail/refutable-pattern-errors.rs | |
| parent | 90a9f65b8da62f7495e56cab252efe590dd456e5 (diff) | |
| download | rust-d747de5a927e405c7d12ae04d213bdc05add2032.tar.gz rust-d747de5a927e405c7d12ae04d213bdc05add2032.zip | |
Compile bools to i1
We currently compiled bools to i8 values, because there was a bug in LLVM that sometimes caused miscompilations when using i1 in, for example, structs. Using i8 means a lot of unnecessary zero-extend and truncate operations though, since we have to convert the value from and to i1 when using for example icmp or br instructions. Besides the unnecessary overhead caused by this, it also sometimes made LLVM miss some optimizations. Fixes #8106.
Diffstat (limited to 'src/test/compile-fail/refutable-pattern-errors.rs')
0 files changed, 0 insertions, 0 deletions
