Re: [PATCH] inliner: Don't emit copy stmts for empty type parameters [PR103989]

2022-01-13 Thread Jakub Jelinek via Gcc-patches
On Thu, Jan 13, 2022 at 10:54:15AM +0100, Richard Biener wrote: > > The following patch avoids emitting a parameter copy statement when inlining > > if the parameter has empty type. E.g. the gimplifier does something similar > > (except that it needs to evaluate side-effects if any, which isn't th

Re: [PATCH] inliner: Don't emit copy stmts for empty type parameters [PR103989]

2022-01-13 Thread Richard Biener via Gcc-patches
On Thu, 13 Jan 2022, Jakub Jelinek wrote: > Hi! > > The following patch avoids emitting a parameter copy statement when inlining > if the parameter has empty type. E.g. the gimplifier does something similar > (except that it needs to evaluate side-effects if any, which isn't the case > here): >

[PATCH] inliner: Don't emit copy stmts for empty type parameters [PR103989]

2022-01-13 Thread Jakub Jelinek via Gcc-patches
Hi! The following patch avoids emitting a parameter copy statement when inlining if the parameter has empty type. E.g. the gimplifier does something similar (except that it needs to evaluate side-effects if any, which isn't the case here): /* For empty types only gimplify the left hand side and