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 1uM41N-001j48-PW for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Jun 2025 12:12:05 +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 1uM41L-009V6r-6G for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Jun 2025 12:12:03 +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 1uM41K-009V6j-Sy for pgsql-hackers@lists.postgresql.org; Mon, 02 Jun 2025 12:12:02 +0000 Received: from mail-lf1-x141.google.com ([2a00:1450:4864:20::141]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uM41I-0001p1-1o for pgsql-hackers@lists.postgresql.org; Mon, 02 Jun 2025 12:12:01 +0000 Received: by mail-lf1-x141.google.com with SMTP id 2adb3069b0e04-55320ddb9edso4782581e87.1 for ; Mon, 02 Jun 2025 05:12:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1748866318; x=1749471118; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=NMBCahpcR0LAavccVo+gDKv8XIuIhyHHDO5Lp50T3Ko=; b=TJQDiQ5Qv9VCDuE9vvnf506tjr/lr7Fbzlyi+8yXdxnjhRwbjRqmaghMZmkoicNWPV ENPsroBNiNqAOYEAKbAev/JvdhtN/r+SmJq6t3gq9fyeXG6HwWMJ3ooAdVZ21qhA33xU KOBuh78bpBx9zTlpN0H7Ab6HQEbJzlOxH37W41kaF8bkpk3ywkqbfBeyjmc2ez5LIvyw hBOzTFrRlXYF5iUwGnlPCSa4GRrEDFJUsbB58OGGr7t1DrvLq380o2k+NKaMEwAMfA5+ S0+h2fhFTdh6HbUuE6Ggxv053yRKSvFJ3QjhtyHPuXf4x9sU5OQ167IuAH1Td0T0dS/9 6ihA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748866318; x=1749471118; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NMBCahpcR0LAavccVo+gDKv8XIuIhyHHDO5Lp50T3Ko=; b=KF96cuCiyzM2oMGovOhOlKMrC8yk0AnGXWY0Y6Oo6XR4F249TK6vPM/64DldgZmAPG qqhsQyS4I7e22YXx8ZUQrMlKnvi+ZLVk7SlHpiMFJKM27cEA/2sdAG7qgV08PXq8HpLd HF4gIHBYQK2n0hjqIr5wuFD92WyFDr6AbqTY/cgft+1QZyvVXi5GBgtyknHX2+N7HObu yqXtHcDnUXGid/0rvAEgko0h/HZXH7gNJmGjsgD2BZRqq7cdc7gRAXJIrp34kXQdGjfu tJvBSf/V/nbGhcghzYWxbRHtZ5a6+SHQ4DIK1bea4BgaC+X4h6h6iz38mPlDtuT4t6Wq ND4A== X-Forwarded-Encrypted: i=1; AJvYcCWPxvVz4/GFqCYxRa7SqxZwyCLwh3MAqc3QtXk9cD/zTJBi6IAP5SUN5ARhBICRDD/ayPgGtvEkS8EijMIv@lists.postgresql.org X-Gm-Message-State: AOJu0Yx4eErHIyNkKn0yFF/df1ntjJCXoAYSKFz971PWJNKBdiJy7P09 zTNi0XqerfgWrdF62MJ+tXB1b7wwCYMprMmxOXXw9V7LMaL+VJR+ZuohjtFTv9H7Zt9gDUoN4Jx bWHJelfFcifnVIOe6T1BWqdp24njJraNqYjLt X-Gm-Gg: ASbGncsER1TzTxWml5q2xcqL1JGXuImbHgediCYMvv2lnZ2pn68BOCianKI5lWHhy8M ueZsEtOe6d/wI64s/KuPb67waygltcEOKNQjKAHSSMgDGllrrFAt8zKmMRV13PGcQdTy/kZtgID XKIFUefum9pE/TcU6h6q4qJvfHTnUwgqjcBdtU+j3b5TvIZ7XV/HCna/Z7rEByDwTTXXE9WRisH lloAw== X-Google-Smtp-Source: AGHT+IEo2Z8mosObXIg+JoFvjU02d17LDLn9Brip4iIQqJ6Q0lQz3lil+sHHssJYOgodojBthbJ2SEwtvRSBXoGhzrA= X-Received: by 2002:a05:6512:b0b:b0:553:3621:efd5 with SMTP id 2adb3069b0e04-5533b8f6d09mr4241208e87.16.1748866317785; Mon, 02 Jun 2025 05:11:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: John Naylor Date: Mon, 2 Jun 2025 19:11:45 +0700 X-Gm-Features: AX0GCFv0qtM21SZyLNYb9gwD0yCnXufeCi6XrvDQOjZOMRBM6f5kUve5WDuv1og Message-ID: Subject: Re: Proposal for enabling auto-vectorization for checksum calculations To: Matthew Sterrett Cc: Nazir Bilal Yavuz , Stepan Neretin , pgsql-hackers@lists.postgresql.org, "Devulapalli, Raghuveer" , "Shankaran, Akash" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, May 23, 2025 at 4:54=E2=80=AFAM Matthew Sterrett wrote: > Okay, I've determined that versions of LLVM/Clang before 19 crash when > compiling this patch for some reason; it seems that both make > check-world and make install will crash with the affected LLVM > versions. > Unfortunately, what matters seems to be the version of the linker/LTO > optimizer, which I don't think we can check at compile time. > I added a check for Clang>=3D19 which works at preventing the crash on my= system. > I think it's possible some unusual combination of clang/LLVM might > still crash during the build, but I think this is a reasonable > solution I don't know if this is related to the crashes, but it doesn't seem like a good idea to #include the function pointer stuff everywhere, that should probably go into src/port like the others. -- John Naylor Amazon Web Services