Commit 71e7afb2 by Sebastian Pop Committed by Sebastian Pop

graphite.c (stmt_simple_for_scop_p): Also handle cases when gimple_call_lhs is NULL.

2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite.c (stmt_simple_for_scop_p): Also handle cases when
	gimple_call_lhs is NULL.

From-SVN: r143517
parent da609a9b
2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
* graphite.c (stmt_simple_for_scop_p): Also handle cases when
gimple_call_lhs is NULL.
2008-01-20 Paolo Bonzini <bonzini@gnu.org>
PR target/38868
......
......@@ -1040,14 +1040,12 @@ stmt_simple_for_scop_p (basic_block scop_entry, gimple stmt)
size_t n = gimple_call_num_args (stmt);
tree lhs = gimple_call_lhs (stmt);
for (i = 0; i < n; i++)
{
tree arg = gimple_call_arg (stmt, i);
if (lhs && !is_simple_operand (loop, stmt, lhs))
return false;
if (!(is_simple_operand (loop, stmt, lhs)
&& is_simple_operand (loop, stmt, arg)))
return false;
}
for (i = 0; i < n; i++)
if (!is_simple_operand (loop, stmt, gimple_call_arg (stmt, i)))
return false;
return true;
}
......
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