diff options
author | Jakub Jelinek <jakub@redhat.com> | 2012-08-22 15:00:13 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2012-08-22 15:00:13 +0200 |
commit | 156c01cf120bd8706d3aa915ccfc9cff94c4dc12 (patch) | |
tree | cbfd6a9481608f8a350b28a1b648d1d23276673d | |
parent | d9c6ca8570b1982b383455aa5d315bcac049145d (diff) | |
download | gcc-156c01cf120bd8706d3aa915ccfc9cff94c4dc12.zip gcc-156c01cf120bd8706d3aa915ccfc9cff94c4dc12.tar.gz gcc-156c01cf120bd8706d3aa915ccfc9cff94c4dc12.tar.bz2 |
tree-vect-loop.c (vect_transform_loop): Initialize check_profitability to false.
* tree-vect-loop.c (vect_transform_loop): Initialize
check_profitability to false.
* tree-predcom.c (try_combine_chains): Free the worklist vector
at the end.
From-SVN: r190592
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/tree-predcom.c | 2 | ||||
-rw-r--r-- | gcc/tree-vect-loop.c | 2 |
3 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c04f5cb..608f8d6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2012-08-22 Jakub Jelinek <jakub@redhat.com> + + * tree-vect-loop.c (vect_transform_loop): Initialize + check_profitability to false. + + * tree-predcom.c (try_combine_chains): Free the worklist vector + at the end. + 2012-08-22 Marc Glisse <marc.glisse@inria.fr> PR tree-optimization/54317 diff --git a/gcc/tree-predcom.c b/gcc/tree-predcom.c index b13300c..684a57a 100644 --- a/gcc/tree-predcom.c +++ b/gcc/tree-predcom.c @@ -2331,6 +2331,8 @@ try_combine_chains (VEC (chain_p, heap) **chains) } } } + + VEC_free (chain_p, heap, worklist); } /* Prepare initializers for CHAIN in LOOP. Returns false if this is diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c index 67d0eb1..728bc0f 100644 --- a/gcc/tree-vect-loop.c +++ b/gcc/tree-vect-loop.c @@ -5277,7 +5277,7 @@ vect_transform_loop (loop_vec_info loop_vinfo) gimple_seq pattern_def_seq = NULL; gimple_stmt_iterator pattern_def_si = gsi_none (); bool transform_pattern_stmt = false; - bool check_profitability; + bool check_profitability = false; int th; if (vect_print_dump_info (REPORT_DETAILS)) |