From nobody Mon Jun 19 18:44:21 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QlJZs5yRkz4f4Rh; Mon, 19 Jun 2023 18:44:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QlJZs5SPbz49YH; Mon, 19 Jun 2023 18:44:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687200261; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hQTkx6sr6ERJ79jZsT+BLqw0AsyJ7AEcotTiw/8CgYE=; b=SwCz5XJndYky0wFJBMp7WP/WVjZzJWJ7mY/3chPambnmYraE/fL0ui5PFvRMxaVaJ4gBPS QdveyttpPBYX4FqFfeMx1W2k4jy/4tW/eyRvKJ5dV+O4Uh/otHFrRo6ueVeK2aNfEKq0mb kVcTNa/1s/XDOLKpFrz20EvzHFxADaFlqudaF90CqVr7nZDH8H2uN7dG0x0NJBm+mbzlqN WqIwsBUu0RnYpkFZpru8XcVRG05TXdlVlLfSaki9p0EHEGheitajqSEZuLd+bBNfEgjX+9 cjUXFyC3E87+XFl4Gc2GHirGRHEji1NvEZ5k9FToN1ZKGgeWiswWM6bQbx3QEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687200261; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hQTkx6sr6ERJ79jZsT+BLqw0AsyJ7AEcotTiw/8CgYE=; b=ceZnIfAel3a1aDcek3vBueQxnnE5FFD1lYopn40Tx0HyeTWToDWi8LsUwEllmLtrTWgnfv Rxh2tcEFBQiVLWVuaKMgZlc7XmrjSnyNvqPawVek5PanfD0axbRbrliEeAe0zYm/AP55Xr tPjYlgwzwXbQsmUH/JEo4cizZLXSkNRzuVMyKlezR3uQ198edqpXSoiTcUt/bxbSJmDzAZ iQWJDUQ3UN/f4fj2s72e4nMsatXb0dLqO46RK91AhqilELRFnsRIXI8V2TUZhA1iy+zAN7 RvF8pIO2ndN5w2XNLGqY7fGNzmtMCRQcftY2C2FnsfZIZ4ACJdF2HDSX/RcCog== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687200261; a=rsa-sha256; cv=none; b=h5H5qPFpdHAHECuLAwuY2Y0P03n8e4JGIjVcGanNDawSgLTMjJOJbOXa9vd93uCtbOY+x2 67x96y+uJM927MQ1k4fKIH0zCDR9WA8MBDcl4u7ThamKFxT3uyZdDau8zNsO2KkSdYJ8VI ydKETcqTNBGA1yMpvRnp4+aDj+7oWTokIEoLd0XDxWpsydM+lYQ/JZwJTdbfyzyt3/ez0V oWplHt0ZWTMl2Xa+/cUxzgc6gBb1kKMa+Oupviyojfh0hmlIKUHJbByVCmSmqmgGb4uT4S PQwykN6G/K3o6i6PaY3j5ygIbYxnefvQoYXrORiXGlYg4RYAMWQr9lK/X+QH1Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QlJZs4WDMzT1G; Mon, 19 Jun 2023 18:44:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35JIiLs7096857; Mon, 19 Jun 2023 18:44:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35JIiLiK096856; Mon, 19 Jun 2023 18:44:21 GMT (envelope-from git) Date: Mon, 19 Jun 2023 18:44:21 GMT Message-Id: <202306191844.35JIiLiK096856@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Brooks Davis Subject: git: 50593575e96b - main - devel/llvm16: update to 16.0.6 release List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 50593575e96b94f5de485c6216a870db44e487e0 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/ports/commit/?id=50593575e96b94f5de485c6216a870db44e487e0 commit 50593575e96b94f5de485c6216a870db44e487e0 Author: Brooks Davis AuthorDate: 2023-06-19 18:44:06 +0000 Commit: Brooks Davis CommitDate: 2023-06-19 18:44:06 +0000 devel/llvm16: update to 16.0.6 release Change the lite flavor to default to BE_FREEBSD rather than BE_NATIVE to allow its use in cross-build CI pipelines. Backport fix for LLVM bug 61396. [0] This fixes miscompilation of gcc on 32-bit arm. PR: 271992 [0] Reported by: jfc@mit.edu [0] --- devel/llvm16/Makefile | 4 +-- devel/llvm16/distinfo | 6 ++--- devel/llvm16/files/patch-backport-962c306a1 | 42 +++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 5 deletions(-) diff --git a/devel/llvm16/Makefile b/devel/llvm16/Makefile index 90aa66b02610..6fe1894268ad 100644 --- a/devel/llvm16/Makefile +++ b/devel/llvm16/Makefile @@ -1,5 +1,5 @@ PORTNAME= llvm -DISTVERSION= 16.0.5 +DISTVERSION= 16.0.6 PORTREVISION= 0 CATEGORIES= devel lang MASTER_SITES= https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION:S/rc/-rc/}/ \ @@ -100,7 +100,7 @@ OPTIONS_EXCLUDE_armv7= COMPILER_RT OPTIONS_SUB= yes .if ${FLAVOR:Mlite} -OPTIONS_DEFAULT+= BE_NATIVE +OPTIONS_DEFAULT+= BE_FREEBSD .else OPTIONS_DEFINE+= EXTRAS FLANG LIT LLDB MLIR OPENMP PYCLANG OPTIONS_DEFINE_amd64= GOLD diff --git a/devel/llvm16/distinfo b/devel/llvm16/distinfo index 0169bda7d36f..95efc23fe3c1 100644 --- a/devel/llvm16/distinfo +++ b/devel/llvm16/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1685986713 -SHA256 (llvm-project-16.0.5.src.tar.xz) = 37f540124b9cfd4680666e649f557077f9937c9178489cea285a672e714b2863 -SIZE (llvm-project-16.0.5.src.tar.xz) = 118000368 +TIMESTAMP = 1686758340 +SHA256 (llvm-project-16.0.6.src.tar.xz) = ce5e71081d17ce9e86d7cbcfa28c4b04b9300f8fb7e78422b1feb6bc52c3028e +SIZE (llvm-project-16.0.6.src.tar.xz) = 118013488 diff --git a/devel/llvm16/files/patch-backport-962c306a1 b/devel/llvm16/files/patch-backport-962c306a1 new file mode 100644 index 000000000000..1b37decff88b --- /dev/null +++ b/devel/llvm16/files/patch-backport-962c306a1 @@ -0,0 +1,42 @@ +commit 8e1222aee4c657e572b7d7841daf7f48ec6ba035 +Author: John F. Carr +Date: Tue Jun 13 14:10:00 2023 -0400 + + LLVM commit 962c306a11d0a21c884c12e18825b8a41ba1bd7d + +diff --git a/contrib/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/contrib/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +index 5fd4e45d80fb..9d95cb25efa0 100644 +--- llvm/lib/Transforms/Vectorize/LoopVectorize.cpp ++++ llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +@@ -4627,11 +4627,17 @@ void LoopVectorizationCostModel::collectLoopUniforms(ElementCount VF) { + WideningDecision == CM_Interleave); + }; + +- + // Returns true if Ptr is the pointer operand of a memory access instruction +- // I, and I is known to not require scalarization. ++ // I, I is known to not require scalarization, and the pointer is not also ++ // stored. + auto isVectorizedMemAccessUse = [&](Instruction *I, Value *Ptr) -> bool { +- return getLoadStorePointerOperand(I) == Ptr && isUniformDecision(I, VF); ++ auto GetStoredValue = [I]() -> Value * { ++ if (!isa(I)) ++ return nullptr; ++ return I->getOperand(0); ++ }; ++ return getLoadStorePointerOperand(I) == Ptr && isUniformDecision(I, VF) && ++ GetStoredValue() != Ptr; + }; + + // Holds a list of values which are known to have at least one uniform use. +@@ -4679,8 +4685,8 @@ void LoopVectorizationCostModel::collectLoopUniforms(ElementCount VF) { + if (isa(I) && Legal->isUniformMemOp(I)) + addToWorklistIfAllowed(&I); + +- if (isUniformDecision(&I, VF)) { +- assert(isVectorizedMemAccessUse(&I, Ptr) && "consistency check"); ++ if (isVectorizedMemAccessUse(&I, Ptr)) { ++ assert(isUniformDecision(&I, VF) && "consistency check"); + HasUniformUse.insert(Ptr); + } + }