tree-vect-loop.c (vect_determine_vectorization_factor): Handle both pattern and origi...
authorIra Rosen <ira.rosen@linaro.org>
Thu, 30 Jun 2011 06:37:41 +0000 (06:37 +0000)
committerIra Rosen <irar@gcc.gnu.org>
Thu, 30 Jun 2011 06:37:41 +0000 (06:37 +0000)
commit83197f37339cecf1c89724341a85aae539751f84
tree4f3bebd5f33136e8f6f42ff799dc8c7eb3704c7e
parent0dcd5f9db100c5c9d4209c04fdbe0f5bd75f2751
tree-vect-loop.c (vect_determine_vectorization_factor): Handle both pattern and original statements if necessary.

        * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
        both pattern and original statements if necessary.
        (vect_transform_loop): Likewise.
        * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
        * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
        Mark the pattern statement only if the original statement doesn't
        have its own uses.
        (process_use): Call vect_mark_relevant with additional parameter.
        (vect_mark_stmts_to_be_vectorized): Likewise.
        (vect_get_vec_def_for_operand): Use vectorized pattern statement.
        (vect_analyze_stmt): Handle both pattern and original statements
        if necessary.
        (vect_transform_stmt): Don't store vectorized pattern statement
        in the original statement.
        (vect_is_simple_use_1): Use related pattern statement only if the
        original statement is irrelevant.
        * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.

From-SVN: r175681
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/slp-widen-mult-half.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/vect-widen-mult-half.c [new file with mode: 0644]
gcc/tree-vect-loop.c
gcc/tree-vect-patterns.c
gcc/tree-vect-slp.c
gcc/tree-vect-stmts.c