[llvm-commits] [PATCH][fast-math, Instcombine] X * (cond ? 1.0 : 0.0) => cond ? X : 0.0

Nadav Rotem nrotem at apple.com
Fri Dec 14 09:58:59 PST 2012


LGTM.  


On Dec 13, 2012, at 2:24 PM, Shuxin Yang <shuxin.llvm at gmail.com> wrote:

> Hi,
> 
>  The attached patch is to implement rule:
>   X * (cond ? 1.0 : 0.0) => Cond ? X : 0.0
> 
>  The multiply must be flagged n-signed-zero and n-nan.
> 
> Thanks
> Shuxin
> <mpy_select.patch>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list