target cost model tuning for x86

Jan Hubicka hubicka@ucw.cz
Mon Sep 10 00:07:00 GMT 2007


Hi,
> 	
> 	* config/i386/i386.h (processor_costs): Add scalar_stmt_cost, 
> 	  scalar_load_cost, scalar_store_cost, vec_stmt_cost,
> 	  vec_to_scalar_cost, scalar_to_vec_cost, vec_align_load_cost,
> 	  vect_unalign_load_cost, vec_store_cost.
> 	  Define macros for x86 costs.
> 	* config/i386/i386.c 
> 	  (size_cost): Set scalar_stmt_cost, scalar_load_cost,
> 	  scalar_store_cost, vec_stmt_cost, vec_to_scalar_cost,
> 	  scalar_to_vec_cost, vec_align_load_cost,
> vect_unalign_load_cost,
> 	  vec_store_cost to 1. 
>         (i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
> geode_cost,
> 	  k6_cost, athlon_cost, amdfam10_cost, pentium4_cost,
> nocona_cost,
> 	  core2_cost, generic64_cost, generic32_cost): Set to default
> untuned
> 	  costs.
> 	  (k8_cost): Costs for vectorization tuned.
> 	  (x86_builtin_vectorization_cost): New.

The i386 bits are OK.
Honza



More information about the Gcc-patches mailing list