PR tree-optimization/49352
commit8507818163cb5a876ed08013be8d62ee09516478
authorirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Jun 2011 06:10:20 +0000 (13 06:10 +0000)
committerirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Jun 2011 06:10:20 +0000 (13 06:10 +0000)
tree2be3cf95d5b99d54ab9bf6b1f56768c2729e3bea
parentf795735a4a5cdb9eb06b6d40a02cc5961c1084c5
    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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174982 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr49352.c [new file with mode: 0644]
gcc/tree-vect-loop.c