OSDN Git Service

2012-02-21 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Feb 2012 09:42:59 +0000 (09:42 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Feb 2012 09:42:59 +0000 (09:42 +0000)
* tree-vect-stmts.c (vectorizable_load): Use pre-computed
nested_in_vect_loop.

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

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

index ea84649..b9599cf 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-21  Richard Guenther  <rguenther@suse.de>
+
+       * tree-vect-stmts.c (vectorizable_load): Use pre-computed
+       nested_in_vect_loop.
+
 2012-02-21  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/52318
index f0b3dae..78dd4d1 100644 (file)
@@ -4268,7 +4268,7 @@ vectorizable_load (gimple stmt, gimple_stmt_iterator *gsi, gimple *vec_stmt,
   if (!STMT_VINFO_DATA_REF (stmt_info))
     return false;
 
-  negative = tree_int_cst_compare (loop && nested_in_vect_loop_p (loop, stmt)
+  negative = tree_int_cst_compare (nested_in_vect_loop
                                   ? STMT_VINFO_DR_STEP (stmt_info)
                                   : DR_STEP (dr),
                                   size_zero_node) < 0;
@@ -4658,7 +4658,7 @@ vectorizable_load (gimple stmt, gimple_stmt_iterator *gsi, gimple *vec_stmt,
      This can only occur when vectorizing memory accesses in the inner-loop
      nested within an outer-loop that is being vectorized.  */
 
-  if (loop && nested_in_vect_loop_p (loop, stmt)
+  if (nested_in_vect_loop
       && (TREE_INT_CST_LOW (STMT_VINFO_DR_STEP (stmt_info))
          % GET_MODE_SIZE (TYPE_MODE (vectype)) != 0))
     {