public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
To: Siddhesh Poyarekar <siddhesh@gotplt.org>
Cc: 'GNU C Library' <libc-alpha@sourceware.org>
Subject: Re: [RFC]: Removing old Falkor ifuncs
Date: Fri, 9 Dec 2022 18:00:36 +0000	[thread overview]
Message-ID: <PAWPR08MB8982BB3BDB74B7A370D6212A831C9@PAWPR08MB8982.eurprd08.prod.outlook.com> (raw)
In-Reply-To: <8862bd85-24ef-42d7-e48a-acdb7ada73c9@gotplt.org>

Hi Siddhesh,

>On 2022-12-09 10:14, Wilco Dijkstra wrote:
>> Do we need the ifuncs for Falkor? The SIMD memcpy is now the default
>> generic memcpy and that is quite similar to the Falkor one, so it seems
>> time to remove the Falkor variants. Since you are the original author,
>> what do you think?
>
> The key differentiator in memcpy/memmove at that time was the register 
> number usage since that affected how the hardware prefetcher performed. 
> Changing that might affect performance on falkor, although I don't 
> exactly remember by how much.

If there was a difference, it would likely be on large copies. But it would be hard
to test without access to a machine...

> The other key differentiator is in memset, where reading dczid_el0 was 
> expensive on falkor, so the value is hard coded to avoid reading it 
> everytime.

Yes this is true for various microarchitectures. I posted a patch to make this
more general a few years ago, ie. always use an ifunc if the ZVA size is 64
rather than do something CPU specific.

Cheers,
Wilco

  reply	other threads:[~2022-12-09 18:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-09 15:14 Wilco Dijkstra
2022-12-09 15:24 ` Siddhesh Poyarekar
2022-12-09 18:00   ` Wilco Dijkstra [this message]
2022-12-21 17:27     ` Wilco Dijkstra
2022-12-21 23:38       ` Siddhesh Poyarekar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PAWPR08MB8982BB3BDB74B7A370D6212A831C9@PAWPR08MB8982.eurprd08.prod.outlook.com \
    --to=wilco.dijkstra@arm.com \
    --cc=libc-alpha@sourceware.org \
    --cc=siddhesh@gotplt.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).