Commit 7ef58a1a by Bill Schmidt Committed by William Schmidt

re PR tree-optimization/53647 (gcc.c-torture/compile/20011229-1.c and…

re PR tree-optimization/53647 (gcc.c-torture/compile/20011229-1.c and gcc.c-torture/compile/pr25311.c)

2012-06-13  Bill Schmidt  <wschmidt@linux.ibm.com>

	PR tree-optimization/53647
	* tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
	targets with no defined cache line size.

From-SVN: r188509
parent a21892ad
2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com> 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
PR tree-optimization/53647
* tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
targets with no defined cache line size.
2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
* targhooks.c (default_builtin_vectorized_conversion): Handle * targhooks.c (default_builtin_vectorized_conversion): Handle
vec_construct, using vectype to base cost on subparts. vec_construct, using vectype to base cost on subparts.
* target.h (enum vect_cost_for_stmt): Add vec_construct. * target.h (enum vect_cost_for_stmt): Add vec_construct.
......
...@@ -1976,12 +1976,14 @@ hoist_adjacent_loads (basic_block bb0, basic_block bb1, ...@@ -1976,12 +1976,14 @@ hoist_adjacent_loads (basic_block bb0, basic_block bb1,
/* Determine whether we should attempt to hoist adjacent loads out of /* Determine whether we should attempt to hoist adjacent loads out of
diamond patterns in pass_phiopt. Always hoist loads if diamond patterns in pass_phiopt. Always hoist loads if
-fhoist-adjacent-loads is specified and the target machine has -fhoist-adjacent-loads is specified and the target machine has
a conditional move instruction. */ both a conditional move instruction and a defined cache line size. */
static bool static bool
gate_hoist_loads (void) gate_hoist_loads (void)
{ {
return (flag_hoist_adjacent_loads == 1 && HAVE_conditional_move); return (flag_hoist_adjacent_loads == 1
&& PARAM_VALUE (PARAM_L1_CACHE_LINE_SIZE)
&& HAVE_conditional_move);
} }
/* Always do these optimizations if we have SSA /* Always do these optimizations if we have SSA
......
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