On Tue, May 24, 2016 at 12:38 PM, Kugan Vivekanandarajah <kugan.vivekanandara...@linaro.org> wrote: > Hi, > > In build_and_add_sum, new stmt is created and inserted (which is the > actual use stmt). Therefore stmt_to_insert has to be inserted after > this is created. This patch moves it after. > > I don’t know how I can reduce the Fortran test-case so adding the > test-case from bug report. Any help in reducing the test-case is > appreciated. > > Regression testing on x86_64-linux-gnu and bootstrap didn’t find any new > issues. > > Is this OK for trunk?
Ok. Richard. > Thanks, > Kugan > > gcc/testsuite/ChangeLog: > > 2016-05-24 Kugan Vivekanandarajah <kug...@linaro.org> > > * gfortran.dg/pr71252.f90: New test. > > gcc/ChangeLog: > > 2016-05-24 Kugan Vivekanandarajah <kug...@linaro.org> > > * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert > after > build_and_add_sum creates new use stmt.