Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pcRhY-0006oH-0m for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Mar 2023 14:02:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pcRhW-0003gd-Iz for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Mar 2023 14:01:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pcRhW-0003gN-5h for pgsql-hackers@lists.postgresql.org; Wed, 15 Mar 2023 14:01:58 +0000 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pcRhR-00068s-Tz for pgsql-hackers@lists.postgresql.org; Wed, 15 Mar 2023 14:01:57 +0000 Received: by mail-pl1-x62d.google.com with SMTP id o11so1009440ple.1 for ; Wed, 15 Mar 2023 07:01:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678888913; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ng4e93hAajB7YHocwIa/hcyk1czBsp8jDiSkk4K8T0E=; b=TEnXFl3boa7ZsWrTWrq9ATByZPOi55FiiMH2+WIeinT+rtG8Z4FVYtZWerN0/dgwBI B85gAS8G2mmq8UcTMvyBG02BSEoR0+2bcALyeE/HubneNLdsbRGJu84niiWYOMjk3XQ6 Mct4G2IZ6r/eFClPU/joxEWh2HTjj+yjEpHXfKateKXlWuU6aoJie7jp+1MXWERMQJpz 6i+yzGO3JeSNMkpDGGbqGLqo9KvaZmYB0czU97F/3m/hEy5lq21kqfkVuqHRDbowtHxJ 1IpNIyKk+iY796f1EFOdF/W2uyUVpR9LRXMPo6OQF7i2aUM2x/1tTNQzevPDt43QIEDE LQvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678888913; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ng4e93hAajB7YHocwIa/hcyk1czBsp8jDiSkk4K8T0E=; b=LfrrVpZzyhLhX+8VMCfigaYjInhdzFOi/zKEC72gH6G5UrIqwfQAecG6FcYm3KD5+p 3tLQzzSz2r316rpPt8ZT8SXhJZfafp0rl75ysXO32C3wokU0tOTMlvg8ZGyqWl87bBzc JlgXs7qsmCAScx3BU6bgmr10Ow1bLgYNUkYHToqMKAY9c3vJEXcY8oCgXMqGDb0iFZ6e Ju+SUVaCAvzlwX5EC4F9FV5XTcVeZ9Ep0vo4g0vlXwV+pb93IvWbu49eW/Fck1h3G+vD olY5ZGXTd+7jHirF5dnGPe0fLs8fEIap5t8YzbWeY1RswDG8pCqh/KzrKDeIx9X0tTF1 MUMg== X-Gm-Message-State: AO0yUKUkVNybZYvPh8Vp8FK18LAMa9NwsrmKymZTFh9hmUh5XExMGy6V nMo++8LwB6v9k0lt7By4lbU= X-Google-Smtp-Source: AK7set8Rrio23Z81knn/YW4PQ7G6+A3SufMG8cJIgYRVlnlDArd+9i4GGp1bD9A5lCxhjPvdiVX7qQ== X-Received: by 2002:a05:6a20:6a1d:b0:c7:6f26:ca0 with SMTP id p29-20020a056a206a1d00b000c76f260ca0mr44253672pzk.54.1678888912634; Wed, 15 Mar 2023 07:01:52 -0700 (PDT) Received: from [10.0.2.15] ([49.207.221.237]) by smtp.gmail.com with ESMTPSA id i18-20020aa78d92000000b00588e0d5124asm3535760pfr.160.2023.03.15.07.01.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Mar 2023 07:01:52 -0700 (PDT) Message-ID: <7fc23473-7f10-5282-711e-34247d089f75@gmail.com> Date: Wed, 15 Mar 2023 19:31:46 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: optimize several list functions with SIMD intrinsics To: Nathan Bossart Cc: pgsql-hackers@lists.postgresql.org References: <20230308002502.GA3378449@nathanxps13> <20230308185809.GA3552675@nathanxps13> <167852767890.628976.10354523915450248589.pgcf@coridan.postgresql.org> <20230313214027.GB423713@nathanxps13> Content-Language: en-US From: Ankit Kumar Pandey In-Reply-To: <20230313214027.GB423713@nathanxps13> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Agree with your points Nathan. Just a headup. > On 14/03/23 03:10, Nathan Bossart wrote: > On Sat, Mar 11, 2023 at 09:41:18AM +0000, Ankit Kumar Pandey wrote: >> 1. In list_member_ptr, will it be okay to bring `const ListCell *cell` from >> #ifdef USE_NO_SIMD >> const ListCell *cell; >> #endif >> to #else like as mentioned below? This will make visual separation between #if cases more cleaner > I would expect to see -Wdeclaration-after-statement warnings if we did > this. This worked fine for me, no warnings on gcc 12.2.0. Not a concern though. Thanks, Ankit