aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-02-21 09:42:59 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-02-21 09:42:59 +0000
commitd1e4b49395b41b1d3ea31f7fd21c381626fbf2c1 (patch)
tree9541a42b75bb83cb257d97baf11ef0e48ce297af
parent949e47e5767ae98fe1f30b1b632d02fe8f553abe (diff)
downloadgcc-d1e4b49395b41b1d3ea31f7fd21c381626fbf2c1.zip
gcc-d1e4b49395b41b1d3ea31f7fd21c381626fbf2c1.tar.gz
gcc-d1e4b49395b41b1d3ea31f7fd21c381626fbf2c1.tar.bz2
tree-vect-stmts.c (vectorizable_load): Use pre-computed nested_in_vect_loop.
2012-02-21 Richard Guenther <rguenther@suse.de> * tree-vect-stmts.c (vectorizable_load): Use pre-computed nested_in_vect_loop. From-SVN: r184429
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-vect-stmts.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ea84649..b9599cf 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c
index f0b3dae..78dd4d1 100644
--- a/gcc/tree-vect-stmts.c
+++ b/gcc/tree-vect-stmts.c
@@ -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))
{