Always call free_stmt_vec_info_vec in gather_scalar_reductions
authorTom de Vries <tom@codesourcery.com>
Mon, 23 Nov 2015 09:45:38 +0000 (09:45 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Mon, 23 Nov 2015 09:45:38 +0000 (09:45 +0000)
commit1cabb204394a2369ee7deeb518cbed038b33939b
tree006bc81b651c60e115e889c4144c6d622ef16fda
parentb59e2a4903fa1ac8c3b34338a62b1e3fb15c3792
Always call free_stmt_vec_info_vec in gather_scalar_reductions

2015-11-23  Tom de Vries  <tom@codesourcery.com>

PR tree-optimization/68460
* tree-parloops.c (gather_scalar_reductions): Also call
free_stmt_vec_info_vec if simple_loop_info == NULL.

* gcc.dg/autopar/pr68460.c: New test.

From-SVN: r230742
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/autopar/pr68460.c [new file with mode: 0644]
gcc/tree-parloops.c