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:
parent
fe9821b88c
commit
617428e9f6
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user