Commit ac53c069 by Sebastian Pop Committed by Sebastian Pop

Move rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.

2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-sese-to-poly.c (build_poly_scop): Move
	rewrite_commutative_reductions_out_of_ssa before
	find_scop_parameters.

From-SVN: r169217
parent 64c69d8c
2011-01-25 Sebastian Pop <sebastian.pop@amd.com> 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
* graphite-sese-to-poly.c (build_poly_scop): Move
rewrite_commutative_reductions_out_of_ssa before
find_scop_parameters.
2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
* graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
VAR_DECL, PARM_DECL, and RESULT_DECL. VAR_DECL, PARM_DECL, and RESULT_DECL.
......
2011-01-19 Sebastian Pop <sebastian.pop@amd.com>
* graphite-sese-to-poly.c (build_poly_scop): Move
rewrite_commutative_reductions_out_of_ssa before
find_scop_parameters.
2011-01-18 Sebastian Pop <sebastian.pop@amd.com> 2011-01-18 Sebastian Pop <sebastian.pop@amd.com>
PR tree-optimization/46970 PR tree-optimization/46970
......
...@@ -3159,6 +3159,9 @@ build_poly_scop (scop_p scop) ...@@ -3159,6 +3159,9 @@ build_poly_scop (scop_p scop)
if (!scop_ivs_can_be_represented (scop)) if (!scop_ivs_can_be_represented (scop))
return; return;
if (flag_associative_math)
rewrite_commutative_reductions_out_of_ssa (scop);
build_sese_loop_nests (region); build_sese_loop_nests (region);
build_sese_conditions (region); build_sese_conditions (region);
find_scop_parameters (scop); find_scop_parameters (scop);
...@@ -3175,8 +3178,6 @@ build_poly_scop (scop_p scop) ...@@ -3175,8 +3178,6 @@ build_poly_scop (scop_p scop)
representation to the polyhedral representation to avoid scev representation to the polyhedral representation to avoid scev
analysis failures. That means that these functions will insert analysis failures. That means that these functions will insert
new data references that they create in the right place. */ new data references that they create in the right place. */
if (flag_associative_math)
rewrite_commutative_reductions_out_of_ssa (scop);
rewrite_reductions_out_of_ssa (scop); rewrite_reductions_out_of_ssa (scop);
rewrite_cross_bb_scalar_deps_out_of_ssa (scop); rewrite_cross_bb_scalar_deps_out_of_ssa (scop);
......
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