about summary refs log tree commit diff
path: root/src/libstd/task
diff options
context:
space:
mode:
authorBjörn Steinbrink <bsteinbr@gmail.com>2013-07-25 10:53:27 +0200
committerBjörn Steinbrink <bsteinbr@gmail.com>2013-07-25 12:17:31 +0200
commite0685e22a3a7a5735f635bd28bdcb5084dd5be34 (patch)
treea84ae4838a9e69004e7c3d8977df454736670ac8 /src/libstd/task
parent75a08622e8754dbc43ccd2f08031227527645d39 (diff)
downloadrust-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