diff options
| author | Björn Steinbrink <bsteinbr@gmail.com> | 2013-07-25 10:53:27 +0200 |
|---|---|---|
| committer | Björn Steinbrink <bsteinbr@gmail.com> | 2013-07-25 12:17:31 +0200 |
| commit | e0685e22a3a7a5735f635bd28bdcb5084dd5be34 (patch) | |
| tree | a84ae4838a9e69004e7c3d8977df454736670ac8 /src/libstd/task | |
| parent | 75a08622e8754dbc43ccd2f08031227527645d39 (diff) | |
| download | rust-e0685e22a3a7a5735f635bd28bdcb5084dd5be34.tar.gz rust-e0685e22a3a7a5735f635bd28bdcb5084dd5be34.zip | |
Make omission of impossible if-else branches work with constants
Until now, we only optimized away impossible branches when there is a literal true/false in the code. But since the LLVM IR builder already does constant folding for us, we can trivially expand that to work with constants as well. Refs #7834
Diffstat (limited to 'src/libstd/task')
0 files changed, 0 insertions, 0 deletions
