Fix PRs 46834, 46994, and 46995: only rewrite reductions not containing other computations.
2011-02-08 Sebastian Pop <sebastian.pop@amd.com> PR tree-optimization/46834 PR tree-optimization/46994 PR tree-optimization/46995 * graphite-sese-to-poly.c (used_outside_reduction): New. (detect_commutative_reduction): Call used_outside_reduction. (rewrite_commutative_reductions_out_of_ssa_close_phi): Call translate_scalar_reduction_to_array only when at least one loop-phi/close-phi tuple has been detected. * gcc.dg/graphite/id-pr46834.c: New. * gfortran.dg/graphite/id-pr46994.f90: New. * gfortran.dg/graphite/id-pr46995.f90: New. From-SVN: r169928
Showing
gcc/testsuite/gcc.dg/graphite/id-pr46834.c
0 → 100644
Please
register
or
sign in
to comment