diff options
| author | Björn Steinbrink <bsteinbr@gmail.com> | 2014-09-04 13:36:39 +0200 |
|---|---|---|
| committer | Björn Steinbrink <bsteinbr@gmail.com> | 2015-02-04 20:06:17 +0100 |
| commit | db8f2d590385786c176b5f7d9e887814d31db9ad (patch) | |
| tree | 586849a7359a13d49397dcf4ba56baf8808abda5 /src/test/codegen/stack-alloc-string-slice.rs | |
| parent | ac134f7ca435551964996ee88319241cd3c7c110 (diff) | |
| download | rust-db8f2d590385786c176b5f7d9e887814d31db9ad.tar.gz rust-db8f2d590385786c176b5f7d9e887814d31db9ad.zip | |
Avoid unnecessary codegen in with_cond()
Currently "k / 2" generates one (k: uint) or two (k: int) "br false, ..." instructions and the corresponding basic blocks, producing quite some noise and making the code unnecessarily hard to read. Additionally we can skip translation if the code would end up unreachable anyway.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions
