Re: Popcount optimization using AVX512 - Mailing list pgsql-hackers

From David Rowley
Subject Re: Popcount optimization using AVX512
Date
Msg-id CAApHDvrqVoduZRNTct5yn_6e=i7TkqhzSxt96WQQDxEkgdGeWg@mail.gmail.com
Whole thread Raw
In response to Re: Popcount optimization using AVX512  (Nathan Bossart <nathandbossart@gmail.com>)
Responses Re: Popcount optimization using AVX512
List pgsql-hackers
On Sat, 6 Apr 2024 at 04:38, Nathan Bossart <nathandbossart@gmail.com> wrote:
> This seems to provide a small performance boost, so I've incorporated it
> into v27.

Won't Valgrind complain about this?

+pg_popcount_avx512(const char *buf, int bytes)

+ buf = (const char *) TYPEALIGN_DOWN(sizeof(__m512i), buf);

+ val = _mm512_maskz_loadu_epi8(mask, (const __m512i *) buf);

David



pgsql-hackers by date:

Previous
From: "Regina Obe"
Date:
Subject: RE: Can't compile PG 17 (master) from git under Msys2 autoconf
Next
From: Tom Lane
Date:
Subject: [MASSMAIL]DROP OWNED BY fails to clean out pg_init_privs grants