tree-tailcall.c (process_assignment): Don't check if a multiplication or an addition...
authorGiuseppe Scrivano <gscrivano@gnu.org>
Mon, 21 Sep 2009 16:41:58 +0000 (16:41 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Mon, 21 Sep 2009 16:41:58 +0000 (16:41 +0000)
commitd9334061eab3d7bab9f85f2b051dd714d62630c9
treed4a8058faf26a3a540090cddd356cfa068c5d8bf
parent334738b440a3f7eb2b1b488c2f4fbac88bd85ca9
tree-tailcall.c (process_assignment): Don't check if a multiplication or an addition are already present.

2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>

* tree-tailcall.c (process_assignment): Don't check if a multiplication
or an addition are already present.
(find_tail_calls): Combine multiple additions and multiplications.
(adjust_accumulator_values): Emit accumulators.

testsuite:
2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>

* gcc.dg/tree-ssa/tailrecursion-6.c: New file.

From-SVN: r151935
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-6.c [new file with mode: 0644]
gcc/tree-tailcall.c