tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is invariant.

* tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
	invariant.

From-SVN: r124324
This commit is contained in:
Jan Hubicka 2007-05-01 13:19:59 +02:00 committed by Jan Hubicka
parent fe9821b88c
commit 617428e9f6
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-05-01 Jan Hubicka <jh@suse.cz>
* tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
invariant.
2007-05-01 Jan Hubicka <jh@suse.cz>
* tree.h (maybe_fold_offset_to_component_ref): Remove.

View File

@ -1644,6 +1644,12 @@ vect_is_simple_use (tree operand, loop_vec_info loop_vinfo, tree *def_stmt,
*dt = vect_constant_def;
return true;
}
if (is_gimple_min_invariant (operand))
{
*def = operand;
*dt = vect_invariant_def;
return true;
}
if (TREE_CODE (operand) != SSA_NAME)
{
@ -1671,7 +1677,7 @@ vect_is_simple_use (tree operand, loop_vec_info loop_vinfo, tree *def_stmt,
if (IS_EMPTY_STMT (*def_stmt))
{
tree arg = TREE_OPERAND (*def_stmt, 0);
if (TREE_CODE (arg) == INTEGER_CST || TREE_CODE (arg) == REAL_CST)
if (is_gimple_min_invariant (arg))
{
*def = operand;
*dt = vect_invariant_def;