pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathandbossart@gmail.com>
To: Devulapalli, Raghuveer <raghuveer.devulapalli@intel.com>
Cc: John Naylor <johncnaylorls@gmail.com>
Cc: Andy Fan <zhihuifan1213@163.com>
Cc: Jesper Pedersen <jesperpedersen.db@gmail.com>
Cc: Tomas Vondra <tomas@vondra.me>
Cc: pgsql-hackers@lists.postgresql.org <pgsql-hackers@lists.postgresql.org>
Cc: Shankaran, Akash <akash.shankaran@intel.com>
Subject: Re: Improve CRC32C performance on SSE4.2
Date: Mon, 16 Jun 2025 17:14:19 -0500
Message-ID: <aFCXO7MztuZezdpH@nathan> (raw)
In-Reply-To: <PH8PR11MB8286A89AF2B104044187E54DFB70A@PH8PR11MB8286.namprd11.prod.outlook.com>
References: <CANWCAZYsfyjcrjhL--zMTV4ERiR3rDGiVZHs_-0y9enc38qtsw@mail.gmail.com>
	<Z_BZ_Xxdu9E2r8SH@nathan>
	<CANWCAZa_iAhjd-6TVY5NfDzyoSJxFgsMrPW0YwKuTMF7a75D9g@mail.gmail.com>
	<87o6uqd3iv.fsf@163.com>
	<e98f1e23-b05b-43e4-a3a1-0967df12ada4@vondra.me>
	<aE1_knL40G9Wq_zp@nathan>
	<029f0848-8bc2-4d99-aebd-345949f97622@gmail.com>
	<87frg1dc3k.fsf@163.com>
	<CANWCAZZ+iVxz5QAadZrTCyps3Wewjy45POnqOkSi4KE_Y4YQtw@mail.gmail.com>
	<PH8PR11MB8286A89AF2B104044187E54DFB70A@PH8PR11MB8286.namprd11.prod.outlook.com>

On Mon, Jun 16, 2025 at 06:31:11PM +0000, Devulapalli, Raghuveer wrote:
> Attached is a simple reproducer. It passes with clang v16 -O0, but fails
> with 17 and 18 only when built with -O0..

I've just started looking into this, but the difference in code generated
for _mm512_castsi128_si512() between gcc, clang 16, and clang 17 looks
interesting.

-- 
nathan





view thread (82+ messages)  latest in thread

Message-ID: <aFCXO7MztuZezdpH@nathan>
Permalink:  ../aFCXO7MztuZezdpH@nathan/
Also on:    postgresql.org/message-id/aFCXO7MztuZezdpH@nathan

 · 

reply

Reply instructions:

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

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: nathandbossart@gmail.com, raghuveer.devulapalli@intel.com, johncnaylorls@gmail.com, zhihuifan1213@163.com, jesperpedersen.db@gmail.com, tomas@vondra.me, akash.shankaran@intel.com
  Subject: Re: Improve CRC32C performance on SSE4.2
  In-Reply-To: <aFCXO7MztuZezdpH@nathan>
  References: <CANWCAZYsfyjcrjhL--zMTV4ERiR3rDGiVZHs_-0y9enc38qtsw@mail.gmail.com> <Z_BZ_Xxdu9E2r8SH@nathan> <CANWCAZa_iAhjd-6TVY5NfDzyoSJxFgsMrPW0YwKuTMF7a75D9g@mail.gmail.com> <87o6uqd3iv.fsf@163.com> <e98f1e23-b05b-43e4-a3a1-0967df12ada4@vondra.me> <aE1_knL40G9Wq_zp@nathan> <029f0848-8bc2-4d99-aebd-345949f97622@gmail.com> <87frg1dc3k.fsf@163.com> <CANWCAZZ+iVxz5QAadZrTCyps3Wewjy45POnqOkSi4KE_Y4YQtw@mail.gmail.com> <PH8PR11MB8286A89AF2B104044187E54DFB70A@PH8PR11MB8286.namprd11.prod.outlook.com> <aFCXO7MztuZezdpH@nathan>

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

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox