http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55281



--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-11-13 
07:25:41 UTC ---

Author: jakub

Date: Tue Nov 13 07:25:36 2012

New Revision: 193471



URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193471

Log:

    PR tree-optimization/55281

    * tree-vect-generic.c (expand_vector_condition): Accept any

    is_gimple_val rather than just SSA_NAME if not COMPARISON_CLASS_P.

    * fold-const.c (fold_ternary_loc): Fold VEC_COND_EXPR if arg0 is

    either integer_all_onesp or integer_zerop.

    * tree-vect-stmts.c (vectorizable_condition): Build the condition

    using corresponding vector integer type instead of vectype.



    * gcc.dg/vect/fast-math-pr55281.c: New test.

    * g++.dg/opt/pr55281.C: New test.



Added:

    trunk/gcc/testsuite/g++.dg/opt/pr55281.C

    trunk/gcc/testsuite/gcc.dg/vect/fast-math-pr55281.c

Modified:

    trunk/gcc/ChangeLog

    trunk/gcc/fold-const.c

    trunk/gcc/testsuite/ChangeLog

    trunk/gcc/tree-vect-generic.c

    trunk/gcc/tree-vect-stmts.c

Reply via email to