Fix PR42284.
commit72b68035cfe8bb57ffb48563c6ad85258ab4fa52
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Dec 2009 01:14:58 +0000 (14 01:14 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Dec 2009 01:14:58 +0000 (14 01:14 +0000)
tree017bb1283220b9be651139244c9e83b9ac87330d
parent5d764b273edbb643a532df997edaee5546c14e6e
Fix PR42284.

2009-12-12  Sebastian Pop  <sebpop@gmail.com>

* graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs.
(detect_commutative_reduction_arg): Simplified.
(detect_commutative_reduction): Early return when the argument of
the close phi is not of an SSA_NAME.
* testsuite/gcc.dg/graphite/pr42284.c: New.

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