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

--- Comment #12 from irar at gcc dot gnu.org 2010-11-02 12:13:01 UTC ---
Author: irar
Date: Tue Nov  2 12:12:56 2010
New Revision: 166175

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

    PR tree-optimization/45902
    * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for
    shift.
    (vect_get_slp_defs): Add arguments.
    * tree-vect-stmts.c (cost_for_stmt): Handle shifts.
    (vect_get_vec_def_for_operand): Use operand's
    type to determine number of units in the created vector.
    (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
    (vectorizable_shift): New function.
    (vectorizable_operation): Move code that handles shifts to
    vectorizable_shift.
    (vectorizable_type_demotion): Pass scalar operands to
    vect_get_slp_defs.
    (vectorizable_type_promotion, vectorizable_store): Likewise.
    (vect_analyze_stmt): Call vectorizable_shift.
    (vect_transform_stmt): Likewise.
    * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
    Use it as the operand to create vectors except for stores.
    (vect_get_slp_defs): Add new arguments. Pass them to
    vect_get_constant_vectors.


Added:
    branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/vect/pr45902.c
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_5-branch/gcc/tree-vect-slp.c
    branches/gcc-4_5-branch/gcc/tree-vect-stmts.c
    branches/gcc-4_5-branch/gcc/tree-vectorizer.h

Reply via email to