PR opt/15108
* tree-tailcall.c (find_tail_calls): Don't check early for
tail_recursion failure.
From-SVN: r82866
+2004-06-09 Richard Henderson <rth@redhat.com>
+
+ PR opt/15108
+ * tree-tailcall.c (find_tail_calls): Don't check early for
+ tail_recursion failure.
+
2004-06-09 Diego Novillo <dnovillo@redhat.com>
Move SSA_NAME annotations into tree_ssa_name.
if (TREE_CODE (stmt) != MODIFY_EXPR)
return;
- /* Unless this is a tail recursive call, we cannot do anything with
- the statement anyway. */
- if (!tail_recursion)
- return;
-
if (!process_assignment (stmt, stmt, bsi, &m, &a, &ass_var))
return;
}
&& (ret_var != ass_var))
return;
+ /* If this is not a tail recursive call, we cannot handle addends or
+ multiplicands. */
+ if (!tail_recursion && (m || a))
+ return;
+
nw = xmalloc (sizeof (struct tailcall));
nw->call_block = bb;