Fix PR46924: Do not detect reductions outside the current SESE region.
authorSebastian Pop <sebastian.pop@amd.com>
Thu, 16 Dec 2010 22:54:17 +0000 (22:54 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Thu, 16 Dec 2010 22:54:17 +0000 (22:54 +0000)
commita30e53454663b6b8fab469d249341c514a6395f6
treea641dbfe3a54dffdf98a22c0dcc0ee96689e0352
parent114dae43305796626be7257e51fd53c7e5085f44
Fix PR46924: Do not detect reductions outside the current SESE region.

2010-12-16  Sebastian Pop  <sebastian.pop@amd.com>

PR tree-optimization/46924
* graphite-sese-to-poly.c (detect_commutative_reduction): Do not
detect reductions outside the current SESE region.
* sese.h (stmt_in_sese_p): New.
(defined_in_sese_p): Call stmt_in_sese_p.

* gcc.dg/graphite/pr46924.c: New.

From-SVN: r167962
gcc/ChangeLog
gcc/graphite-sese-to-poly.c
gcc/sese.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/graphite/pr46924.c [new file with mode: 0644]