Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yi2xD-0004g2-0u for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Apr 2015 15:40:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yi2xC-0000y9-Gk for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Apr 2015 15:40:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yi2rH-0000XZ-AM for pgsql-hackers@postgresql.org; Tue, 14 Apr 2015 15:34:39 +0000 Received: from mail-wg0-x230.google.com ([2a00:1450:400c:c00::230]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Yi2rD-0003Xz-R7 for pgsql-hackers@postgresql.org; Tue, 14 Apr 2015 15:34:37 +0000 Received: by wgso17 with SMTP id o17so16485477wgs.1 for ; Tue, 14 Apr 2015 08:34:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:reply-to:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=stGx3TZU45wb695absalsbBbrZhIZByrEZtse6L7AaE=; b=b9p1o9zf78Tv0JOInb1orQl+n5kDCFyRaXPrafUQ6rnc8zeSS6ffwb/JajMldHedqi 20sTuFvFprIrIetGU8okdUAPZ/EzZzXgYnaWYtgRcpdpqQ8Bea/X2Rza7aVITpaloBhh 8i/jvQvdaRtTJr/XhTLVm98ip178hRMDyVmftQ2xTwhHNHJlHQDLVSq/KXSHY3qNL46A KZ2P5OmanEDB1VAFS0WcXJl6h6tQbZcN4Nh6mcAMpnGigIi2osr7Aqev+QOzIKY6FMYK +9jsnubr794sDQPbM6rS0dmYlVvIbrH7nFUj6rt0bVfghLprex3KkxGH4FuEfUlffFNL R9hg== X-Received: by 10.194.122.196 with SMTP id lu4mr40952408wjb.154.1429025674218; Tue, 14 Apr 2015 08:34:34 -0700 (PDT) Received: from [192.168.1.99] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by mx.google.com with ESMTPSA id dx11sm2048525wjb.23.2015.04.14.08.34.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Apr 2015 08:34:33 -0700 (PDT) Message-ID: <552D3387.7090807@iki.fi> Date: Tue, 14 Apr 2015 18:34:31 +0300 From: Heikki Linnakangas Reply-To: hlinnaka@iki.fi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.6.0 MIME-Version: 1.0 To: Simon Riggs CC: pgsql-hackers Subject: Re: [COMMITTERS] pgsql: Use Intel SSE 4.2 CRC instructions where available. References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 04/14/2015 06:28 PM, Simon Riggs wrote: > On 14 April 2015 at 10:09, Heikki Linnakangas wrote: > >> Abhijit Menon-Sen, heavily modified by me, reviewed by Andres Freund. > > Did the heavy modifications have any affect on the patch behaviour, or > was this just related to where you would like to put the code? Didn't affect behaviour. Hmm, the buildfarm animals using Intel C compiler didn't like this patch. The problem seems to be that unlike on gcc and clang, icc always has the SSE 4.2 intrinsics (_mm_crc32_u64, _mm_crc32_u8 etc.), even when the target CPU architecture is not SSE 4.2. On gcc/clang, those intrinsics are not defined unless you build with -msse4.2. I'll try to find a fix. I think we could use the __SSE4_2__ define to check whether SSE4.2 is targeted. Or we can punt and always build the version with the runtime check, unless overridden manually at configure command line. - Heikki -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers