From nobody Thu Mar 28 05:06:23 2024 X-Original-To: dev-commits-src-branches@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 4V4s2R5g59z5GCgM; Thu, 28 Mar 2024 05:06:23 +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 4V4s2R4pS4z4TtV; Thu, 28 Mar 2024 05:06:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711602383; 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=j8TqMkAAsqOuNNpRgxzicCPR1fXfXKZkvxE/iJ1lZfA=; b=iftH853KTYHDVJ75T1vyYyvd7417nYuLiMZkA3BKtfXNKtG3ba/LbCFF4e8Dxh8mWXttkl x4dqOBdYF/i0f0pALwP5dRA85MatF/91GXsitKQJ1naZ0BwQis9svv65dZRlimeZC7eVLk b3sS9CxtXLnbmk0tY/UIyspao0KAWI2pcFI33M6spgoaiATfjqLki6nzZhFNCjwwX8e/8g yVnIKzl7a9F4Bv9H0jhruBhsyXVFVW3F1oXUqwAtBNrPHSzc0ZV+vHSgD1lswg4o9hZ1iY /nBVx3jzJZdbPfL9sv3IEkfpzipZf3IkufjFpORMEEHl3vXlchw3SYMB4osjTg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711602383; a=rsa-sha256; cv=none; b=mOH1wwuMjwMa3t++LLFm1xJrO/j/kFnvBtD7fGWsXSd4CNhhRTaCl8ASwuxLTrBcgzKi1V QF7jzRHCK18OaNoEuKIxGUl2vlOTtByDeQLuUf9Pily5Nvq/JlpXcH7ybN+VvTDGrZbiZJ 4bvmps7IE0e3vjeDBzZCRssV5rMBZy5xhMBl8E1fubazS1X0U5EucoAijNhVf8eEiPVMuC JiaGYhgmGm/6ysdTHng3Oz+5i1oiIPAL0BkglvogCjfdkfCuSo+hXAmKjKbtMALU5NOyMs XRRVBZdyGJLN9gegY5FPbdZsNy4nk/PW9xlR1E8LNlJnwRxcclNTeXc/nPEMuw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711602383; 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=j8TqMkAAsqOuNNpRgxzicCPR1fXfXKZkvxE/iJ1lZfA=; b=tHyYodHGt0TO1kxAnXBAa4J/QIzQux2q6+tRo/bIBSjJcaMCXSf6S5gHAvDu7NbyK67D0Y aVslZbJVSHEYMKGghyp1Ab1aj3NLpLUDN+oCZldYfO2xUAH2X2/EHWcttb9MtCOP1I8ZBc ngzlN0rSQqyqOqOUGIysB4p78VXrIjzQ3v+LMKWkf30ySPTj8odqNO8TklHYMV/zkMhfVa z+i7bneDT/SgN8/SCEQZozJZ0LtPg3WgRZvuer6Wu0hTEJ/z3vceszQeWc+rPxlerHfp7W EM7UGVwqnguu0Lmfvqe4Wpqtsf0SyC+XYrB98OQLPDWlQMytlLMz5mnHKRseqw== 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 4V4s2R4NpVzF4g; Thu, 28 Mar 2024 05:06:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42S56NVX099083; Thu, 28 Mar 2024 05:06:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42S56Nmb099080; Thu, 28 Mar 2024 05:06:23 GMT (envelope-from git) Date: Thu, 28 Mar 2024 05:06:23 GMT Message-Id: <202403280506.42S56Nmb099080@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gordon Tetlow Subject: git: 711422d54795 - releng/14.0 - Merge commit f800c1f3b207 from llvm-project (by Arthur Eubanks): List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gordon X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.0 X-Git-Reftype: branch X-Git-Commit: 711422d54795fb4fbef16fd1f1afcee6ed4510f4 Auto-Submitted: auto-generated The branch releng/14.0 has been updated by gordon: URL: https://cgit.FreeBSD.org/src/commit/?id=711422d54795fb4fbef16fd1f1afcee6ed4510f4 commit 711422d54795fb4fbef16fd1f1afcee6ed4510f4 Author: Dimitry Andric AuthorDate: 2024-03-04 20:30:54 +0000 Commit: Gordon Tetlow CommitDate: 2024-03-28 03:13:14 +0000 Merge commit f800c1f3b207 from llvm-project (by Arthur Eubanks): [PEI] Don't zero out noreg operands A tail call may have $noreg operands. Fixes a crash. Reviewed By: xgupta Differential Revision: https://reviews.llvm.org/D156485 This should fix an assertion failure building qemu, specifically those parts using -fzero-call-used-regs. Reported by: Daniel Berrangé PR: 277474 MFC after: 3 days Approved by: so Security: FreeBSD-EN-24:07.clang (cherry picked from commit a39b3aa463f3474fabb3aedb5aecf943b54b4357) (cherry picked from commit fc31d474c40a50066310b3d03a8eb0724a00609d) --- contrib/llvm-project/llvm/lib/CodeGen/PrologEpilogInserter.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/contrib/llvm-project/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/contrib/llvm-project/llvm/lib/CodeGen/PrologEpilogInserter.cpp index cc70ec477650..f4e7b57e9284 100644 --- a/contrib/llvm-project/llvm/lib/CodeGen/PrologEpilogInserter.cpp +++ b/contrib/llvm-project/llvm/lib/CodeGen/PrologEpilogInserter.cpp @@ -1289,6 +1289,8 @@ void PEI::insertZeroCallUsedRegs(MachineFunction &MF) { continue; MCRegister Reg = MO.getReg(); + if (!Reg) + continue; // This picks up sibling registers (e.q. %al -> %ah). for (MCRegUnitIterator Unit(Reg, &TRI); Unit.isValid(); ++Unit) @@ -1312,8 +1314,11 @@ void PEI::insertZeroCallUsedRegs(MachineFunction &MF) { if (!MO.isReg()) continue; - for (const MCPhysReg &Reg : - TRI.sub_and_superregs_inclusive(MO.getReg())) + MCRegister Reg = MO.getReg(); + if (!Reg) + continue; + + for (const MCPhysReg Reg : TRI.sub_and_superregs_inclusive(Reg)) RegsToZero.reset(Reg); } }