Commit 187c10dc by H.J. Lu Committed by H.J. Lu

Define TARGET_VECTORIZE_UNITS_PER_SIMD_WORD for rs6000.

2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>

	PR bootstrap/45672
	* config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.

From-SVN: r164289
parent 2c03791b
2010-09-14 H.J. Lu <hongjiu.lu@intel.com> 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/45672
* config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (ix86_lea_for_add_ok): Return false if * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
result isn't used in memory address. result isn't used in memory address.
......
...@@ -1085,6 +1085,7 @@ static bool rs6000_builtin_support_vector_misalignment (enum ...@@ -1085,6 +1085,7 @@ static bool rs6000_builtin_support_vector_misalignment (enum
int, bool); int, bool);
static int rs6000_builtin_vectorization_cost (enum vect_cost_for_stmt, static int rs6000_builtin_vectorization_cost (enum vect_cost_for_stmt,
tree, int); tree, int);
static int rs6000_units_per_simd_word (enum machine_mode);
static void def_builtin (int, const char *, tree, int); static void def_builtin (int, const char *, tree, int);
static bool rs6000_vector_alignment_reachable (const_tree, bool); static bool rs6000_vector_alignment_reachable (const_tree, bool);
...@@ -1485,6 +1486,9 @@ static const struct attribute_spec rs6000_attribute_table[] = ...@@ -1485,6 +1486,9 @@ static const struct attribute_spec rs6000_attribute_table[] =
#undef TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST #undef TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST
#define TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST \ #define TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST \
rs6000_builtin_vectorization_cost rs6000_builtin_vectorization_cost
#undef TARGET_VECTORIZE_UNITS_PER_SIMD_WORD
#define TARGET_VECTORIZE_UNITS_PER_SIMD_WORD \
rs6000_units_per_simd_word
#undef TARGET_INIT_BUILTINS #undef TARGET_INIT_BUILTINS
#define TARGET_INIT_BUILTINS rs6000_init_builtins #define TARGET_INIT_BUILTINS rs6000_init_builtins
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment