This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r126053 - in /branches/autovect-branch/gcc: Cha...


Author: dorit
Date: Wed Jun 27 11:01:28 2007
New Revision: 126053

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126053
Log:
        * target.h (builtin_vectorization_cost): Add new target builtin.
        * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.

        * tree-vectorizer.h (TARG_SCALAR_STMT_COST): New.
        (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST): New.
        * tree-vect-analyze.c (vect_analyze_slp_instance): Initisliaze
        uninitialized variables.
        * tree-vect-transform.c (cost_for_stmt): New function.
        (vect_estimate_min_profitable_iters): Call cost_for_stmt instead of
        using cost 1 for all scalar stmts. Be less conservative when
        estimating the number of prologue/epulogue iterations. Cell
        targetm.vectorize.builtin_vectorization_cost. Return
        min_profitable_iters-1.
        (vect_model_reduction_cost): Use TARG_SCALAR_TO_VEC_COST for
        initialization cost instead of TARG_VEC_STMT_COST. Use
        TARG_VEC_TO_SCALAR_COST instead of TARG_VEC_STMT_COST for reduction
        epilogue code.

        * config/spu/spu.c (spu_builtin_vectorization_cost): New.
        (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Implement.
        * config/spu/spu.h (TARG_COND_BRANCH_COST, TARG_SCALAR_STMT_COST):
        (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST, TARG_VEC_STMT_COST):
        (TARG_VEC_TO_SCALAR_COST, TARG_SCALAR_TO_VEC, TARG_VEC_LOAD_COST):
        (TARG_VEC_UNALIGNED_LOAD_COST, TARG_VEC_STORE_COST): Define.


Added:
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/costmodel/spu/
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-fast-math-vect-pr29925.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-31a.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-31b.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-31c.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-31d.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-33.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-68a.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-68b.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-68c.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-68d.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-76a.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-76b.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-76c.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-iv-9.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-outer-fir.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/costmodel/spu/spu-costmodel-vect.exp
Modified:
    branches/autovect-branch/gcc/ChangeLog.autovect
    branches/autovect-branch/gcc/config/spu/spu.c
    branches/autovect-branch/gcc/config/spu/spu.h
    branches/autovect-branch/gcc/target-def.h
    branches/autovect-branch/gcc/target.h
    branches/autovect-branch/gcc/testsuite/ChangeLog.autovect
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/no-scevccp-outer-16.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/no-scevccp-outer-17.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/no-scevccp-outer-18.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/no-scevccp-outer-19.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/no-scevccp-outer-21.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/vect-outer-2.c
    branches/autovect-branch/gcc/testsuite/lib/target-supports.exp
    branches/autovect-branch/gcc/tree-vect-analyze.c
    branches/autovect-branch/gcc/tree-vect-transform.c
    branches/autovect-branch/gcc/tree-vectorizer.h


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]