]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-vect-stmts.c (vectorizable_store): Move ptr_incr var decl before the loop, initi...
authorJakub Jelinek <jakub@redhat.com>
Thu, 27 Jun 2013 15:35:57 +0000 (17:35 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 27 Jun 2013 15:35:57 +0000 (17:35 +0200)
* tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
decl before the loop, initialize to NULL.
(vectorizable_load): Initialize ptr_incr to NULL.

From-SVN: r200471

gcc/ChangeLog
gcc/tree-vect-stmts.c

index 1ecbfda1f62ef6a10a98df8ccfad9bee05c0b694..efb678dc97e603ec50a8442d6d2951bad950a54d 100644 (file)
@@ -1,3 +1,9 @@
+2013-06-27  Jakub Jelinek  <jakub@redhat.com>
+
+       * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
+       decl before the loop, initialize to NULL.
+       (vectorizable_load): Initialize ptr_incr to NULL.
+
 2013-06-27  Martin Jambor  <mjambor@suse.cz>
 
        PR lto/57208
index 28b80bbe8bcb83c4cd2024d9920fecdeb6d440ce..0580f7dfadca446c424e398b503fe0e8bcda142f 100644 (file)
@@ -3796,6 +3796,7 @@ vectorizable_store (gimple stmt, gimple_stmt_iterator *gsi, gimple *vec_stmt,
   enum vect_def_type dt;
   stmt_vec_info prev_stmt_info = NULL;
   tree dataref_ptr = NULL_TREE;
+  gimple ptr_incr = NULL;
   int nunits = TYPE_VECTOR_SUBPARTS (vectype);
   int ncopies;
   int j;
@@ -4041,7 +4042,6 @@ vectorizable_store (gimple stmt, gimple_stmt_iterator *gsi, gimple *vec_stmt,
   for (j = 0; j < ncopies; j++)
     {
       gimple new_stmt;
-      gimple ptr_incr;
 
       if (j == 0)
        {
@@ -4314,7 +4314,7 @@ vectorizable_load (gimple stmt, gimple_stmt_iterator *gsi, gimple *vec_stmt,
   tree dummy;
   enum dr_alignment_support alignment_support_scheme;
   tree dataref_ptr = NULL_TREE;
-  gimple ptr_incr;
+  gimple ptr_incr = NULL;
   int nunits = TYPE_VECTOR_SUBPARTS (vectype);
   int ncopies;
   int i, j, group_size, group_gap;