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
This commit is contained in:
Richard Guenther 2012-02-21 09:42:59 +00:00 committed by Richard Biener
parent 949e47e576
commit d1e4b49395
2 changed files with 7 additions and 2 deletions

View 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

View 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))
{