From nobody Fri Mar 08 08:19:28 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 4TrfGS4DhCz5D88y; Fri, 8 Mar 2024 08:19:28 +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 4TrfGS1bKxz4rWs; Fri, 8 Mar 2024 08:19:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709885968; 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=NN9gT4aTs02twnsSGC9yzAl3fLpZqEgDozP3N7Xc+yY=; b=KUEeAp4LJR5vXLhzSBIMIiJ6NoFpZhhjyzyXoWc7o/I7jcczR461tWfJtA+26IcygllzNH dMonpUHehRFmiT756LN2WqsTRJGymzKBzlPJ/QScNluqzgIhzRju/3yIE95bzV5bGcUJFF nrDaDUMaGVSe6mwTOAb+bTrrkkZnW4HlbwEg7XM1Oqf3Q+oEDMZ7ZjisqXknqNGp2w7PnO bbqhIXmPQIaD4jdXTfOxCldyNQVM5a/2RguwRG1iWeZKK2CZDFkQSMaM+457oq9E0SoWWG PQ620/pSmpaSGfrkdVCXR1aKi1c05RVqMaVDgWVXQ1g+U41Nii9jJO6583ycfA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709885968; a=rsa-sha256; cv=none; b=bEs0nGFjVcyTMc1taF/788/PVZ+SFRti9U/qXnE/6Ye1U2I5Nik+cXXoYmEruv5b3Yol9J oxmW0Uwpbw5xmH//QzhdewM2PcF516y3BtOqKRyPLk/+jIGmH24Bu3mqZDqddKOPzQGKje zvtfC/hU2gxI4Et2BjtDCtSchQDpnR8jhuarIwVepZoLwNKAYeapCjSn65yMCF5CqZD6D3 Dnqmuwe5nW5lw2c3WKnFLcAVamFA7rQc+XiVCsuQ4idMnBdE1fV9GkH8f01ak0WV4UB+s9 BrjpySBH9LCb9i5LP1W5bw5nR/XDDEs5eU64UeZ4dbb/1atB2DSphuWB0pMQIA== 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=1709885968; 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=NN9gT4aTs02twnsSGC9yzAl3fLpZqEgDozP3N7Xc+yY=; b=INtGH3pgq9osys10hs4ezfJuAFmmUWCoyS41R/iyxfHbivDgG7uk+lgSm8nDgQOnFUzFqh RYjQCZTL+GZyx+YHR9Y5QjfqWJCGHXpEUiMLxtDBi8LnrXE5lc4jrPDOT576YNgRssUHbx 4q5PIhG4ZLBPuuthjVF87PJk8lVmS3F4T7jYTpiCjLcvfeFTRNq9p4XDxs/o8Wfk1BD1ZG jgYuA84SSiMsuC7VDZ/2v1bvvNnYbHzGWiy8URefOJ+0HJ7HjtEl1gUhY9mSk0P4x2Q/sW ZTiC4R++3C+d6ovt1kXWbtELFtYvqQ81j7LicVP2jkzr7mdzn4ngSYFCgb3eVg== 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 4TrfGS1Bqkz19cC; Fri, 8 Mar 2024 08:19:28 +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 4288JSsD061597; Fri, 8 Mar 2024 08:19:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4288JSd7061594; Fri, 8 Mar 2024 08:19:28 GMT (envelope-from git) Date: Fri, 8 Mar 2024 08:19:28 GMT Message-Id: <202403080819.4288JSd7061594@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: fc31d474c40a - stable/14 - 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: fc31d474c40a50066310b3d03a8eb0724a00609d Auto-Submitted: auto-generated The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=fc31d474c40a50066310b3d03a8eb0724a00609d commit fc31d474c40a50066310b3d03a8eb0724a00609d Author: Dimitry Andric AuthorDate: 2024-03-04 20:30:54 +0000 Commit: Dimitry Andric CommitDate: 2024-03-08 08:15:49 +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 (cherry picked from commit a39b3aa463f3474fabb3aedb5aecf943b54b4357) --- 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); } }