]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Partially revert:
authorUlrich Weigand <uweigand@de.ibm.com>
Tue, 28 Feb 2012 23:40:32 +0000 (23:40 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Tue, 28 Feb 2012 23:40:32 +0000 (23:40 +0000)
2012-02-20  Richard Guenther  <rguenther@suse.de>
PR tree-optimization/52298
* tree-vect-stmts.c (vectorizable_load): Properly use
STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
outer loops.

From-SVN: r184645

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

index aae247a5a38cadef4fee1ff069fe455ae29a50ca..2816c4ae8b09464bc20e60be167568784d969469 100644 (file)
@@ -1,3 +1,13 @@
+2012-02-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       Partially revert:
+
+       2012-02-20  Richard Guenther  <rguenther@suse.de>
+       PR tree-optimization/52298
+       * tree-vect-stmts.c (vectorizable_load): Properly use
+       STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
+       outer loops.
+
 2012-02-28  Aldy Hernandez  <aldyh@redhat.com>
 
        PR middle-end/51752
index 78dd4d1615eae41251c5b61d6ac7aec6c2250d9b..edfe98d30556342d1d0a158781c57911e59c853c 100644 (file)
@@ -4659,7 +4659,7 @@ vectorizable_load (gimple stmt, gimple_stmt_iterator *gsi, gimple *vec_stmt,
      nested within an outer-loop that is being vectorized.  */
 
   if (nested_in_vect_loop
-      && (TREE_INT_CST_LOW (STMT_VINFO_DR_STEP (stmt_info))
+      && (TREE_INT_CST_LOW (DR_STEP (dr))
          % GET_MODE_SIZE (TYPE_MODE (vectype)) != 0))
     {
       gcc_assert (alignment_support_scheme != dr_explicit_realign_optimized);