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

irar@gcc.gnu.org irar@gcc.gnu.org
Tue Jun 19 12:02:00 GMT 2007


Author: irar
Date: Tue Jun 19 12:02:36 2007
New Revision: 125848

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125848
Log:
	* tree-vectorizer.h (_slp_tree): Added new fields for costs and their
	access functions.
	(_slp_instance): Likewise.
	* tree-vect-analyze.c (vect_analyze_operations): Call
	vect_update_slp_costs_according_to_vf.
	(vect_get_and_check_slp_defs): Calculate costs. Added arguments.
	(vect_build_slp_tree): Likewise.
	(vect_analyze_slp_instance): Initialize unrolling factor with 1 and
	initialize cost fields. Update arguments of vect_build_slp_tree.
	(vect_update_slp_costs_according_to_vf): New function.
	* tree-vect-transform.c (vect_estimate_min_profitable_iters): Take SLP
	costs into account.
	(vect_model_simple_cost): Make extern, add SLP parameter and handle
	SLP.
	(vect_model_store_cost, vect_model_load_cost): Likewise.
	(vectorizable_call): Add argument to vect_model_simple_cost.
	(vectorizable_assignment): Call vect_model_simple_cost only for not
	pure SLP stmts.
	(vectorizable_operation): Likewise.
	(vectorizable_type_demotion): Add argument to vect_model_simple_cost.
	(vectorizable_type_promotion): Likewise.
	(vectorizable_store): Call vect_model_simple_cost only for not pure SLP
	stmts.
	(vectorizable_load): Likewise.


Added:
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-slp-12.c
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-slp-33.c
Modified:
    branches/autovect-branch/gcc/ChangeLog.autovect
    branches/autovect-branch/gcc/testsuite/ChangeLog.autovect
    branches/autovect-branch/gcc/testsuite/gcc.dg/vect/costmodel/ppc/ppc-costmodel-vect.exp
    branches/autovect-branch/gcc/tree-vect-analyze.c
    branches/autovect-branch/gcc/tree-vect-transform.c
    branches/autovect-branch/gcc/tree-vectorizer.h



More information about the Gcc-cvs mailing list