[LLVMdev] folding x * 0 = 0

me22 me22.ca at gmail.com
Wed Mar 3 09:18:12 PST 2010


On 3 March 2010 11:56, Jochen Wilhelmy <j.wilhelmy at arcor.de> wrote:
>
> the sin and cos calls are folded, but not the mul by zero.
>

Is x*0 => 0 true if isnan(x)?

And cos(x)*sin(x) makes me desperately want to fold it to sin(2*x)/2,
but I suppose that's not allowed either.



More information about the llvm-dev mailing list