* tree-vect-loop.c (vect_transform_loop): Initialize
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Aug 2012 13:00:13 +0000 (13:00 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Aug 2012 13:00:13 +0000 (13:00 +0000)
check_profitability to false.

* tree-predcom.c (try_combine_chains): Free the worklist vector
at the end.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190592 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-predcom.c
gcc/tree-vect-loop.c

index c04f5cb..608f8d6 100644 (file)
@@ -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
index b13300c..684a57a 100644 (file)
@@ -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
index 67d0eb1..728bc0f 100644 (file)
@@ -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))