http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46924
--- Comment #3 from Sebastian Pop <spop at gcc dot gnu.org> 2010-12-16 22:54:24 UTC --- Author: spop Date: Thu Dec 16 22:54:17 2010 New Revision: 167962 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167962 Log: Fix PR46924: Do not detect reductions outside the current SESE region. 2010-12-16 Sebastian Pop <sebastian....@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. Added: trunk/gcc/testsuite/gcc.dg/graphite/pr46924.c Modified: trunk/gcc/ChangeLog trunk/gcc/graphite-sese-to-poly.c trunk/gcc/sese.h trunk/gcc/testsuite/ChangeLog