Fix PR42205.
commit764ae6391f85c888a990034c4bcd38e2ff6143d3
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Dec 2009 06:10:06 +0000 (18 06:10 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Dec 2009 06:10:06 +0000 (18 06:10 +0000)
tree004b5bdc5fdd0135d712af3ce4b2b60c30c5a92e
parent217c61a897161d2d43e296c9d0deb12ef67b1d2c
Fix PR42205.

2009-12-17  Sebastian Pop  <sebastian.pop@amd.com>

PR middle-end/42205
* graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt):
Insert the reduction copy in the same block as the phi node.
(follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs.

* testsuite/gcc.dg/graphite/pr42205-1.c: New.
* testsuite/gcc.dg/graphite/pr42205-2.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/graphite@155334 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog.graphite
gcc/graphite-sese-to-poly.c
gcc/testsuite/gcc.dg/graphite/pr42205-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/graphite/pr42205-2.c [new file with mode: 0644]