[patch] Tame fix for PR ipa/99122

2021-06-02 Thread Eric Botcazou
Hi, as explained in the audit trail, the return part has a major performance impact in Ada where variable-sized types are first-class citizens, but it turns out that it is not exercized in the testsuite yet. Tested on x86-64/Linux, OK for mainline and 11 branch? 2021-06-02 Eric Botcazou

Re: [patch] Tame fix for PR ipa/99122

2021-06-02 Thread Richard Biener via Gcc-patches
On Wed, Jun 2, 2021 at 2:05 PM Eric Botcazou wrote: > > Hi, > > as explained in the audit trail, the return part has a major performance > impact in Ada where variable-sized types are first-class citizens, but it > turns out that it is not exercized in the testsuite yet. > > Tested on x86-64/Linux

Re: [patch] Tame fix for PR ipa/99122

2021-06-03 Thread Eric Botcazou
> Not sure whether we know VLA results are always returned by > reference? In particular does this mean we'll never see a > WITH_SIZE_EXPR on the LHS of a call? You might have noticed > I've done WITH_SIZE_EXPR "enhancements" recently on trunk. VLAs are always aggregate_value_p so the caller pas