From nobody Tue Jul 12 18:34:04 2022 X-Original-To: dev-commits-src-all@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 DE5791D04CC3; Tue, 12 Jul 2022 18:34:04 +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 4Lj8Xr5zdmz3nXM; Tue, 12 Jul 2022 18:34:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657650844; 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=YAp8xCyOp41Iwl/6biVnC8H+jxK4jXcf/HQIN4Npsgc=; b=SyOG6YqSQRmCW/iDuBUIGV6DTjwn4geJE+r0pErasUuGR11xzwnBDxyCHqvKt1DNxxs8Pu 14ni8IFB8atgh1978fdydZoBY8GczlO1vYK1C8j8VxbtmWcY38Z0d5dOEAaC1waHjJL61m cqcXYqAd7aXZmGx2EiXrDViUMvSV0kcbl2YsqDruRYwapRHC0s1GqdRotSaT1irWMZztWN by25djjb+72DRXuBTtF3LE2AXFE5Najktpd+BcR22TRBuDYcfgF6e51OUfNy6CflCW39uS lOkub992nmyNK7MHv1k6YpmKxTM8nv6nOeVcSCvhiefzkIZYkCLiFmhX9PkERA== 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 4Lj8Xr53Jwzv01; Tue, 12 Jul 2022 18:34:04 +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 26CIY4K7047851; Tue, 12 Jul 2022 18:34:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26CIY4Sw047850; Tue, 12 Jul 2022 18:34:04 GMT (envelope-from git) Date: Tue, 12 Jul 2022 18:34:04 GMT Message-Id: <202207121834.26CIY4Sw047850@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 72e9fd9daa3f - stable/13 - Apply tentative llvm fix for avoiding fma on PowerPC SPE List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 72e9fd9daa3fe85415a663100f711e784435d7b6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657650844; 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=YAp8xCyOp41Iwl/6biVnC8H+jxK4jXcf/HQIN4Npsgc=; b=Fi+lyYUhCy1KFJMhi3k1cyZNUz4rwawVBMvECjAXIPykdikR1y8Cvbi/o2A9MRPlMmkoWY 1+nSeIQvwtdQXcjfR2zSZtNj7q5KElHL76gCHXhTgtftHAWtqC8BUWH50Tyagx87VbAKnA +/OX9wnM09CcSUXyNofGhpXeL6PyiwD4RKUo0arrm45MSvXlavYfmYtk2XhUPdH6zcAQZk VwT41q5HLVbM6SP0bzMJdVg6b/Zbkdj3CsgDADMSppSPYMO9ihiKSKw4RJrD0wjvfvt0XJ evqv/UzF24KNka2TsvRZTj83rXXI7cMF56TlkZmwLY3ta+ZBcYx1/hUAm+XR4Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657650844; a=rsa-sha256; cv=none; b=t65URXTghN+7Tjen6owLLN8UlMK2RvB3DDzjjwjS81M2hOmgWYquYiUNKnsICGPp7NU9Vf x05fyI4F38ypr4QrDc6vTC+Vnpcx+sH5kVJGkOvmBXakzAlhmUYxMTMrjj4yDMPWb2NZYu pwqUFu7fo9Za6sNK3RCjqh5aWHl07wShw6PsnT2uORWjYKvPF9zG6Zk9QJZMjQ0LpPaOhp HPUumilN4K9IDaGPjeuwN/XDxWYAZ+4hVMq3A3J25UlJRQ9OExeWVulHbTx1kN3ZqaTCrn XY5Tji2n2lhpHmBgxc4mqFxAlvZLZh2AlQVJwcMjSutMUENyM4hOqZUTBZBhvg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=72e9fd9daa3fe85415a663100f711e784435d7b6 commit 72e9fd9daa3fe85415a663100f711e784435d7b6 Author: Dimitry Andric AuthorDate: 2022-07-09 13:03:54 +0000 Commit: Dimitry Andric CommitDate: 2022-07-12 18:29:55 +0000 Apply tentative llvm fix for avoiding fma on PowerPC SPE Merge llvm review D77558, by Justin Hibbits: PowerPC: Don't hoist float multiply + add to fused operation on SPE SPE doesn't have a fmadd instruction, so don't bother hoisting a multiply and add sequence to this, as it'd become just a library call. Hoisting happens too late for the CTR usability test to veto using the CTR in a loop, and results in an assert "Invalid PPC CTR loop!". Reported by: alfredo Obtained from: https://reviews.llvm.org/D77558 MFC after: 3 days (cherry picked from commit 9ef1127008ce94cf626daed346a3c1ee03063617) --- contrib/llvm-project/llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index d9d37638c8a7..f4aa38733fef 100644 --- a/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -16623,6 +16623,8 @@ bool PPCTargetLowering::isFMAFasterThanFMulAndFAdd(const MachineFunction &MF, bool PPCTargetLowering::isFMAFasterThanFMulAndFAdd(const Function &F, Type *Ty) const { + if (Subtarget.hasSPE()) + return false; switch (Ty->getScalarType()->getTypeID()) { case Type::FloatTyID: case Type::DoubleTyID: