From nobody Mon Mar 04 20:31:47 2024 X-Original-To: dev-commits-src-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 4TpVjH3jZGz5DFGs; Mon, 4 Mar 2024 20:31:47 +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 4TpVjH2npJz4pJL; Mon, 4 Mar 2024 20:31:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709584307; 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=6BaREWb4/9wuBcE02SB5qIezUrMMnxMyNNJQ+QXlZrg=; b=f1GVFPx/Ow4toq0165aK554pC3Ob3gf2MW3dUaXSZZOGNHhreBE+IDJEvtreoYmZpqs4RG OGVKF+GNDjzCZUJBW3QxD+CL81Tel3gyNTUp014CzxMISWUfbaQyam8DRKFig0zoRwdh2u ohegccGE3RCNPVoE6KSh6j+GcNEQMIMyWnOZq5pkr+XX423QMV1bLjl04diBea76DyScBS pwM+3K3IgFShs1UUGeJjSubZVJMUePWW8RVy8TYtNAFCs9CpyKHsE8sbDAyaMJNN10/ucF eXxL1PsrUdpWK7p02xpGwuaNHyQJWmoIUKvlipFXk1XBqQbJhZLTCXUrzmW2FA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709584307; a=rsa-sha256; cv=none; b=i4nok8nopv3gDlKvaTu6F2nOIFThCMs4AW8AwFIndoi9pH7j8trcW0ajQ77aySRMTSu63Z j5TvbLKWUBULPW7VN4gPF/AhHJvOtcqw0WG0oMlbGIebLZNM0gE5UU6vadlqezCLZCwaSi EZFjhJcW8j4amql1Y4z8taiWcE9PmiOudyhsOfgggFoB46kILaYL0BmgOqscD2HXj0Eqem 9mORMSOoH5FdaVQt79a9m0WurQb0NJp7xO2jiE84hhoSONtgorpJ9KdNR3tCFHD6D8mW/i /xoxfDVrpQFIfmKSjCXhLokS6RAQi/S4GGeKIsQZFzaIi6YJnK9UvdpfQbeeQg== 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=1709584307; 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=6BaREWb4/9wuBcE02SB5qIezUrMMnxMyNNJQ+QXlZrg=; b=v4xWSHtAYn3jcX2KFQ3I/25vjBBTpetlqjxUmR/Ybm8R10XFqlhy3V6i1iUqe01tpqSumX tWItHNc8ZobcQD5rk2X8RtCz+J+DPMyMIuhSJIeTf9PpUs+MEkq66yx4h1BDaRggvgZNvu uaQr/DkkLDTYpqu3LjvX0RdjfWUDzxhSTLwwpc4hvqxfwLai3CTeL2odptrYpFCiGQW0Zh 5j9EyIYvTeM58F3pBOylJiCENBtukBGXaBipP798UJzWFNXeawjlRE+9YyapM7tIqhqlsG iqfDfmSIzkxlhRtEdNLIHVOemyqL7mbm65cwOdWv4A56rqX7xU9NXhpVDIoWKA== 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 4TpVjH2PZ9zcFH; Mon, 4 Mar 2024 20:31:47 +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 424KVlap077898; Mon, 4 Mar 2024 20:31:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 424KVlPm077895; Mon, 4 Mar 2024 20:31:47 GMT (envelope-from git) Date: Mon, 4 Mar 2024 20:31:47 GMT Message-Id: <202403042031.424KVlPm077895@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: a39b3aa463f3 - main - Merge commit f800c1f3b207 from llvm-project (by Arthur Eubanks): List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: a39b3aa463f3474fabb3aedb5aecf943b54b4357 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=a39b3aa463f3474fabb3aedb5aecf943b54b4357 commit a39b3aa463f3474fabb3aedb5aecf943b54b4357 Author: Dimitry Andric AuthorDate: 2024-03-04 20:30:54 +0000 Commit: Dimitry Andric CommitDate: 2024-03-04 20:31:04 +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 --- 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 e323aaaeefaf..49047719fdaa 100644 --- a/contrib/llvm-project/llvm/lib/CodeGen/PrologEpilogInserter.cpp +++ b/contrib/llvm-project/llvm/lib/CodeGen/PrologEpilogInserter.cpp @@ -1285,6 +1285,8 @@ void PEI::insertZeroCallUsedRegs(MachineFunction &MF) { continue; MCRegister Reg = MO.getReg(); + if (!Reg) + continue; // This picks up sibling registers (e.q. %al -> %ah). for (MCRegUnit Unit : TRI.regunits(Reg)) @@ -1308,8 +1310,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); } }