On Sat, 2017-04-01 at 18:33 +0200, Gerald Pfeifer wrote:
> On Sat, 1 Apr 2017, David Malcolm wrote:
> > gcc/ChangeLog:
> > * common.opt (felide-function-bodies): New option.
> > * gimplify.c (gimplify_body): Implement function-body
> > elision.
>
> This is okay for the GCC 4.10 branch
On Sat, 1 Apr 2017, David Malcolm wrote:
> gcc/ChangeLog:
> * common.opt (felide-function-bodies): New option.
> * gimplify.c (gimplify_body): Implement function-body
> elision.
This is okay for the GCC 4.10 branch once you include some
testcases.
Thanks,
Gerald
On 2017.04.01 at 01:00 -0400, David Malcolm wrote:
> The following patch implements a new function-body-elision
> optimization, which can dramatically improve performance,
> especially under certain benchmarks.
>
> gcc/ChangeLog:
> * common.opt (felide-function-bodies): New option.
> *
The following patch implements a new function-body-elision
optimization, which can dramatically improve performance,
especially under certain benchmarks.
For example, given this test program...
$ cat test.c
int factorial (int i)
{
if (i > 1)
return i * factorial (i - 1);
else
return