Re: [PATCH] CRC32C optimizations using SVE2 on ARM. - Mailing list pgsql-hackers

From John Naylor
Subject Re: [PATCH] CRC32C optimizations using SVE2 on ARM.
Date
Msg-id CANWCAZZq0Ci9t-jUDvmdWJTgcCXX8YwQU8k0_h5wm7sMHAZFkw@mail.gmail.com
Whole thread Raw
In response to [PATCH] CRC32C optimizations using SVE2 on ARM.  ("Devanga.Susmitha@fujitsu.com" <Devanga.Susmitha@fujitsu.com>)
List pgsql-hackers
On Fri, Dec 19, 2025 at 4:20 AM Devanga.Susmitha@fujitsu.com
<Devanga.Susmitha@fujitsu.com> wrote:
> For architecture-specific functions, we use pg_attribute_target("arch=armv9-a+sve2-aes")

There was already a proposal to use armv8-a+crypto, which is more
widely available and works on smaller inputs. Perhaps you'd be
interested in reviewing and testing?

https://www.postgresql.org/message-id/CANWCAZaKhE%2BRD5KKouUFoxx1EbUNrNhcduM1VQ%3DDkSDadNEFng%40mail.gmail.com

> to ensure precise compilation control without modifying global CFLAGS, enabling a clean integration within
PostgreSQL’sbuild system. 

I think the reason we continue to use CFLAGS here was that clang
support for target attributes on Arm is fairly recent. It's probably
too soon to reconsider that.

--
John Naylor
Amazon Web Services



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [PATCH v1] Fixed a spelling error in the comments in gininsert.c
Next
From: Chao Li
Date:
Subject: Re: Switch buffile.c/h to use pgoff_t