[PATCH] Allow FMAs in safe math mode in some cases when one operand of the fmul is either exactly 0.0 or exactly 1.0.

Joerg Sonnenberger joerg at britannica.bec.de
Tue Jul 9 23:30:24 PDT 2013


On Tue, Jul 09, 2013 at 04:45:47PM -0500, Hal Finkel wrote:
> I'm thinking of something like this: autovectorize this:
> for (...) {
>   a[i] = 1.0 + b[i]*c[i];
> }
> and you'll get a uniform vector of 1.0. I think that this is not uncommon.

This can trigger the rounding difference though?

Joerg



More information about the llvm-commits mailing list