Re: [PATCH] gcc 8: Implement -felide-function-bodies

2017-04-01 Thread David Malcolm
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

Re: [PATCH] gcc 8: Implement -felide-function-bodies

2017-04-01 Thread Gerald Pfeifer
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

Re: [PATCH] gcc 8: Implement -felide-function-bodies

2017-03-31 Thread Markus Trippelsdorf
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. > *

[PATCH] gcc 8: Implement -felide-function-bodies

2017-03-31 Thread David Malcolm
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