Commit 7cc4ff8d by Sebastian Pop Committed by Sebastian Pop

graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi when the loop stride is zero.

2009-10-07  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
	when the loop stride is zero.

	* gcc.dg/graphite/id-16.c: New.

From-SVN: r154565
parent 60d2a8c3
2009-10-07 Sebastian Pop <sebastian.pop@amd.com>
* graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
when the loop stride is zero.
* gcc.dg/graphite/id-16.c: New.
2009-10-06 Sebastian Pop <sebastian.pop@amd.com> 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
* graphite-dependences.c (reduction_dr_1): New. * graphite-dependences.c (reduction_dr_1): New.
......
...@@ -193,7 +193,11 @@ reduction_phi_p (sese region, gimple_stmt_iterator *psi) ...@@ -193,7 +193,11 @@ reduction_phi_p (sese region, gimple_stmt_iterator *psi)
reductions. */ reductions. */
if (simple_iv (loop, loop, res, &iv, true)) if (simple_iv (loop, loop, res, &iv, true))
{ {
gsi_next (psi); if (integer_zerop (iv.step))
remove_invariant_phi (region, psi);
else
gsi_next (psi);
return false; return false;
} }
......
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