Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rpIPc-0062CC-MT for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Mar 2024 01:49:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rpIPb-008TEH-4n for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Mar 2024 01:49:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rpIPa-008TE8-QL for pgsql-hackers@lists.postgresql.org; Wed, 27 Mar 2024 01:49:06 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rpIPS-006cdn-TK for pgsql-hackers@postgresql.org; Wed, 27 Mar 2024 01:49:05 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 42R1mvcg3206057; Tue, 26 Mar 2024 21:48:57 -0400 From: Tom Lane To: Nathan Bossart cc: John Naylor , Ants Aasma , pgsql-hackers@postgresql.org Subject: Re: add AVX2 support to simd.h In-reply-to: <20240327013616.GA3940109@nathanxps13> References: <20240320143116.GA1313857@nathanxps13> <20240320195513.GA1618413@nathanxps13> <20240321170944.GA1767527@nathanxps13> <20240325152121.GB2662364@nathanxps13> <20240325213754.GA3094030@nathanxps13> <20240326190904.GA3700674@nathanxps13> <3189995.1711495704@sss.pgh.pa.us> <20240326235554.GA3766883@nathanxps13> <20240327013616.GA3940109@nathanxps13> Comments: In-reply-to Nathan Bossart message dated "Tue, 26 Mar 2024 20:36:16 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3206055.1711504137.1@sss.pgh.pa.us> Date: Tue, 26 Mar 2024 21:48:57 -0400 Message-ID: <3206056.1711504137@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nathan Bossart writes: > On Tue, Mar 26, 2024 at 06:55:54PM -0500, Nathan Bossart wrote: >> On Tue, Mar 26, 2024 at 07:28:24PM -0400, Tom Lane wrote: >>> A significant fraction of the buildfarm is issuing warnings about >>> this. > Done. I'll keep an eye on the farm. Thanks. > I just did the minimal fix for now, i.e., I moved the new label into the > SIMD section of the function. I think it would be better stylistically to > move the one-by-one logic to an inline helper function, but I didn't do > that just in case it might negatively impact performance. I'll look into > this and will follow up with another patch if it looks good. Sounds like a plan. regards, tom lane