re PR tree-optimization/49352 (-fcompare-debug failure with -O2 -ftree-vectorize)
authorJakub Jelinek <jakub@redhat.com>
Mon, 13 Jun 2011 06:10:20 +0000 (08:10 +0200)
committerIra Rosen <irar@gcc.gnu.org>
Mon, 13 Jun 2011 06:10:20 +0000 (06:10 +0000)
commit29f85237429f703cba263de53a491426b1642d1c
tree2be3cf95d5b99d54ab9bf6b1f56768c2729e3bea
parentfd74d101fa67454a33ee8c5f5a0029819c03e950
re PR tree-optimization/49352 (-fcompare-debug failure with -O2 -ftree-vectorize)

        PR tree-optimization/49352
        * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug
        uses at all, make sure loop_use_stmt after the loop is a def
        stmt of a used SSA_NAME that is the only one defined inside
        of the loop.  Don't check for COND_EXPR and GIMPLE_BINARY_RHS.
        (vect_is_simple_reduction_1): Call vect_is_slp_reduction only
        if check_reduction is true.

Co-Authored-By: Ira Rosen <ira.rosen@linaro.org>
From-SVN: r174982
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr49352.c [new file with mode: 0644]
gcc/tree-vect-loop.c