tree-vectorizer.h (struct _stmt_vec_info): Add new field for pattern def statement...
authorIra Rosen <ira.rosen@linaro.org>
Thu, 4 Aug 2011 16:47:17 +0000 (16:47 +0000)
committerIra Rosen <irar@gcc.gnu.org>
Thu, 4 Aug 2011 16:47:17 +0000 (16:47 +0000)
commit1107f3ae0a154985113aa392e451aa5fa9fe7f0a
treef97727c3e140e3effeba1ba33adafa64f68719ea
parent6394830f4797f29b28552a98e5c9031c275041c1
tree-vectorizer.h (struct _stmt_vec_info): Add new field for pattern def statement, and its access macro.

        * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
        pattern def statement, and its access macro.
        (NUM_PATTERNS): Set to 5.
        * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
        pattern def statement.
        (vect_transform_loop): Likewise.
        * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
        function vect_recog_over_widening_pattern ().
        (vect_operation_fits_smaller_type): New function.
        (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
        Likewise.
        (vect_pattern_recog_1): Move the code that marks pattern
        statements to vect_mark_pattern_stmts (), and call it.  Update
        documentation.
        * tree-vect-stmts.c (vect_supportable_shift): New function.
        (vect_analyze_stmt): Handle pattern def statement.
        (new_stmt_vec_info): Initialize pattern def statement.

From-SVN: r177409
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/vect-over-widen-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/vect-over-widen-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/vect-over-widen-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/vect-over-widen-4.c [new file with mode: 0644]
gcc/tree-vect-loop.c
gcc/tree-vect-patterns.c
gcc/tree-vect-stmts.c
gcc/tree-vectorizer.h