-
- Downloads
tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update documentation.
* doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update documentation. * targhooks.c (default_builtin_vectorization_cost): New function. * targhooks.h (default_builtin_vectorization_cost): Declare. * target.h (enum vect_cost_for_stmt): Define. (builtin_vectorization_cost): Change argument and comment. * tree-vectorizer.h: Remove cost model macros. * tree-vect-loop.c: Include target.h. (vect_get_cost): New function. (vect_estimate_min_profitable_iters): Replace cost model macros with calls to vect_get_cost. (vect_model_reduction_cost, vect_model_induction_cost): Likewise. * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add default implementation. * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with calls to target hook builtin_vectorization_cost. (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost): Likewise. * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H. * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new implementation to return costs. * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise. * config/spu/spu.h: Remove vectorizer cost model macros. * config/i386/i386.h: Likewise. * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with a call to target hook builtin_vectorization_cost. From-SVN: r160360
Showing
- gcc/ChangeLog 29 additions, 0 deletionsgcc/ChangeLog
- gcc/Makefile.in 1 addition, 1 deletiongcc/Makefile.in
- gcc/config/i386/i386.c 40 additions, 16 deletionsgcc/config/i386/i386.c
- gcc/config/i386/i386.h 0 additions, 51 deletionsgcc/config/i386/i386.h
- gcc/config/spu/spu.c 31 additions, 12 deletionsgcc/config/spu/spu.c
- gcc/config/spu/spu.h 0 additions, 51 deletionsgcc/config/spu/spu.h
- gcc/doc/tm.texi 2 additions, 3 deletionsgcc/doc/tm.texi
- gcc/target-def.h 2 additions, 1 deletiongcc/target-def.h
- gcc/target.h 20 additions, 3 deletionsgcc/target.h
- gcc/targhooks.c 30 additions, 0 deletionsgcc/targhooks.c
- gcc/targhooks.h 2 additions, 0 deletionsgcc/targhooks.h
- gcc/tree-vect-loop.c 32 additions, 17 deletionsgcc/tree-vect-loop.c
- gcc/tree-vect-slp.c 3 additions, 1 deletiongcc/tree-vect-slp.c
- gcc/tree-vect-stmts.c 29 additions, 17 deletionsgcc/tree-vect-stmts.c
- gcc/tree-vectorizer.h 0 additions, 64 deletionsgcc/tree-vectorizer.h
Loading
Please register or sign in to comment