]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #18080 : veddan/rust/assume, r=thestinger
authorbors <bors@rust-lang.org>
Sat, 25 Oct 2014 00:32:07 +0000 (00:32 +0000)
committerbors <bors@rust-lang.org>
Sat, 25 Oct 2014 00:32:07 +0000 (00:32 +0000)
Adds an `assume` intrinsic that gets translated to llvm.assume. It is
used on a boolean expression and allows the optimizer to assume that
the expression is true.

This implements #18051.

1  2 
src/libcore/intrinsics.rs
src/librustc/middle/trans/context.rs
src/librustc/middle/trans/intrinsic.rs
src/librustc/middle/typeck/check/mod.rs

Simple merge
Simple merge