diff options
Diffstat (limited to 'gcc/graphite.c')
-rw-r--r-- | gcc/graphite.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gcc/graphite.c b/gcc/graphite.c index 5377d72..f169f72 100644 --- a/gcc/graphite.c +++ b/gcc/graphite.c @@ -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; } |