Commit 617428e9 by Jan Hubicka Committed by Jan Hubicka

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
parent fe9821b8
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.
(maybe_fold_offset_to_reference): Declare.
* fold-const.c (fold_unary): Do not fold
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment