On Mon, 29 Oct 2012, Richard Biener wrote:

On Sun, Oct 28, 2012 at 4:14 PM, Marc Glisse <marc.gli...@inria.fr> wrote:
Hello,

this patch lets some predicates on floating point constants answer true for
vectors, so optimizations are applied.

Tested bootstrap + testsuite (default languages).

Ok.  Bonus points if you quickly eyed users of whether they may be surprised
in vectors coming through now.

I did (that's why I didn't also change integer_twop), but I won't claim the bonus points, because in fold-const.c:
* there is probably an issue with signed zero in fold_real_zero_addition_p
* the RDIV_EXPR case would like real_zerop to mean "at least one is zero"
* abs(x)>=0 or <0 doesn't seem ready

but that's not much compared to the broken integer vector optimizations ;-)

--
Marc Glisse

Reply via email to