OSDN Git Service

Fix PR42205.
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Dec 2009 07:50:22 +0000 (07:50 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Dec 2009 07:50:22 +0000 (07:50 +0000)
commit36f22aa0748a8c87061188133c325ea88e011a02
treebc19cb772a32fa933310f85a572a15b8391b4296
parent673c512eedd5f8ead06667c114013635ca67933d
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/trunk@155419 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]