OSDN Git Service

2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
authorwschmidt <wschmidt@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Feb 2012 16:38:37 +0000 (16:38 +0000)
committerwschmidt <wschmidt@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Feb 2012 16:38:37 +0000 (16:38 +0000)
commit5df2530ba913afd81861a3448ec730e8af5ef7d1
tree1455fc4d37f458d4ad3a9c635dedf65878af17e6
parent780036324bb35cec03dad4e4606fc37254108a2c
2012-02-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
    Ira Rosen  <irar@il.ibm.com>

PR tree-optimization/50031
* targhooks.c (default_builtin_vectorization_cost): Handle
vec_promote_demote.
* target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
* tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
all types of reduction and pattern statements.
(vect_estimate_min_profitable_iters): Likewise.
* tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
(vect_get_load_cost): Use vec_perm for permutations; add dump logic
for explicit realigns.
(vectorizable_conversion): Call vect_model_promotion_demotion_cost.
* config/spu/spu.c (spu_builtin_vectorization_cost): Handle
vec_promote_demote.
* config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
* config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
vec_perm for VSX and handle vec_promote_demote.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184102 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/rs6000/rs6000.c
gcc/config/spu/spu.c
gcc/target.h
gcc/targhooks.c
gcc/tree-vect-loop.c
gcc/tree-vect-stmts.c