diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-07-17 03:13:41 -0500 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-07-17 03:13:41 +1000 |
| commit | 4797dd4087104246b5d5c2d3edf1623acfbc06e5 (patch) | |
| tree | 197e9278accfb30a18fc860420c8ba5ce6aaa845 /src/test/codegen/stack-alloc-string-slice.cc | |
| parent | e252277fe9b44ed9a913aeeb9f55dc85eaadace4 (diff) | |
| download | rust-4797dd4087104246b5d5c2d3edf1623acfbc06e5.tar.gz rust-4797dd4087104246b5d5c2d3edf1623acfbc06e5.zip | |
rustc: selectively trans branches for `if <literal-bool>`.
That is, the `b` branch in `if true { a } else { b }` will not be
trans'd, and that expression will be exactly the same as `a`. This
means that, for example, macros conditionally expanding to `if false
{ .. }` (like debug!) will not waste time in LLVM (or trans).
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.cc')
0 files changed, 0 insertions, 0 deletions
