aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-stmts.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2009-10-21 10:08:39 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2009-10-21 10:08:39 +0000
commit59a05b0ca26ba2af84ccafe3422f35c0460dff1c (patch)
tree9ed512f560082f79b06d882da25f93947d5aecaf /gcc/tree-vect-stmts.c
parenta4bf37944a9f9d8eb77459181558f9194fc6e2db (diff)
downloadgcc-59a05b0ca26ba2af84ccafe3422f35c0460dff1c.zip
gcc-59a05b0ca26ba2af84ccafe3422f35c0460dff1c.tar.gz
gcc-59a05b0ca26ba2af84ccafe3422f35c0460dff1c.tar.bz2
tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak order of checks.
* tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak order of checks. From-SVN: r153051
Diffstat (limited to 'gcc/tree-vect-stmts.c')
-rw-r--r--gcc/tree-vect-stmts.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c
index ddaee81..fb4a5bf 100644
--- a/gcc/tree-vect-stmts.c
+++ b/gcc/tree-vect-stmts.c
@@ -172,13 +172,13 @@ exist_non_indexing_operands_for_use_p (tree use, gimple stmt)
{
tree operand;
stmt_vec_info stmt_info = vinfo_for_stmt (stmt);
-
+
/* USE corresponds to some operand in STMT. If there is no data
reference in STMT, then any operand that corresponds to USE
is not indexing an array. */
if (!STMT_VINFO_DATA_REF (stmt_info))
return true;
-
+
/* STMT has a data_ref. FORNOW this means that its of one of
the following forms:
-1- ARRAY_REF = var
@@ -191,14 +191,12 @@ exist_non_indexing_operands_for_use_p (tree use, gimple stmt)
Therefore, all we need to check is if STMT falls into the
first case, and whether var corresponds to USE. */
-
- if (TREE_CODE (gimple_assign_lhs (stmt)) == SSA_NAME)
- return false;
if (!gimple_assign_copy_p (stmt))
return false;
+ if (TREE_CODE (gimple_assign_lhs (stmt)) == SSA_NAME)
+ return false;
operand = gimple_assign_rhs1 (stmt);
-
if (TREE_CODE (operand) != SSA_NAME)
return false;