RE: [PATCH] aarch64: Improve size heuristic for cpymem expansion

2021-10-01 Thread Kyrylo Tkachov via Gcc-patches
> -Original Message- > From: Gcc-patches bounces+kyrylo.tkachov=arm@gcc.gnu.org> On Behalf Of Christophe > LYON via Gcc-patches > Sent: Thursday, September 30, 2021 2:51 PM > To: gcc-patches@gcc.gnu.org > Subject: Re: [PATCH] aarch64: Improve size heuristic

Re: [PATCH] aarch64: Improve size heuristic for cpymem expansion

2021-09-30 Thread Christophe LYON via Gcc-patches
On 29/09/2021 12:20, Kyrylo Tkachov via Gcc-patches wrote: Hi all, Similar to my previous patch for setmem this one does the same for the cpymem expansion. We count the number of ops emitted and compare it against the alternative of just calling the library function when optimising for size.

[PATCH] aarch64: Improve size heuristic for cpymem expansion

2021-09-29 Thread Kyrylo Tkachov via Gcc-patches
Hi all, Similar to my previous patch for setmem this one does the same for the cpymem expansion. We count the number of ops emitted and compare it against the alternative of just calling the library function when optimising for size. For the code: void cpy_127 (char *out, char *in) { __builtin