]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #33508 - alexcrichton:always-lower-frem, r=nikomatsakis
authorbors <bors@rust-lang.org>
Fri, 13 May 2016 23:00:05 +0000 (16:00 -0700)
committerbors <bors@rust-lang.org>
Fri, 13 May 2016 23:00:05 +0000 (16:00 -0700)
trans: Always lower to `frem`

Long ago LLVM unfortunately didn't handle the 32-bit MSVC case of `frem` where
it can't be lowered to `fmodf` because that symbol doesn't exist. That was since
fixed in http://reviews.llvm.org/D12099 (landed as r246615) and was released in
what appears to be LLVM 3.8. Now that we're using that branch of LLVM let's
remove our own hacks and help LLVM optimize a little better by giving it
knowledge about what we're doing.

1  2 
src/librustc_trans/expr.rs
src/librustc_trans/mir/rvalue.rs

Simple merge
Simple merge