From nobody Fri Mar 08 08:19:49 2024 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 4TrfGs30cJz5D8RC; Fri, 8 Mar 2024 08:19:49 +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 4TrfGs1Qfjz4rtR; Fri, 8 Mar 2024 08:19:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709885989; 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=OoLvR5X3ZNGlc355PkUK0s3JqEbCz1NI3q4iHMDja7s=; b=CJYsyU605PWdxonOWRzkUa4lMLzO1GfGpazZPx+En/lzO/LEi/nO765idmJ6qoPS0HH3UK iRe2XwCz8HEaEL+gDXik6k3QCPbgzVtBcFc7jfZrcV2MIzEvo4JWleuYMfXhWFRC/1LE/w qeo8zC27stjJzpyM1BZIbP6gdo2zKE1T9FWEBYfuPr5e8E7jSoXglAeVASZrM+Tkzehwhr AVckHBC+Qjh6SPiwHnycZ2KdL09x9zOaUhG9KqlnTlPnXwb/7xCUhVfsOwHvr6mwxSTFnX ORmm81xb169fam/WJA97OCBc1/TtSFu3frU7vL4+uXgpLpU7IJPFcrQvfvz/TA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709885989; a=rsa-sha256; cv=none; b=Cq7Em+mdZxujVTyYi+Ys+OQ3VerSk/aS5l35cwJDhlSrTf4tDR6D39C/CapPBYZLvQLt3j TLhDAlG65vIY5Dp9YvaLlnpCP1N7FLyeBuui82uNtdoaBwQpDs3u/U1pGgYmsC4osHQDnK 232JSxS37zMSEhGZs/UFlgeig+KXTd1hXTW7wTMmYZsMkJSiJldrA7/bbjrVoQ3DOE/+7v mSB4rx8PoCUM4hnQC8iZWH1q9q02fOB4wULuwxDnB/UX4jE3g6UD1wbB3aDyWYbJ6HBEo/ KQBOuN2Xd9YBFZNPpEAE9rlBK6FIB/g5B/qlzBB7R/uy6xsTSLNk2oq8j+ujVQ== 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=1709885989; 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=OoLvR5X3ZNGlc355PkUK0s3JqEbCz1NI3q4iHMDja7s=; b=wbLPw7IKsa+53QJpHn4s2IJNRlkDx48krbb+QLVwLgbVZTYyBcjP1iHMmK0QVjcudsFHwt OvRJKquAASZz1b/+V0gk9bjxp1RHaAPKjAzrUgkZspFmNWT+S+yxx2nvxpMT5NdUoXwzVq XVkChYDQzkukOUkKY7J/CawnhRIswI8uOSr/1G4ohPA8McRwX0OKjtA+gglOpxpSHNS/uv jZdmRVqZ6guWz+rK0043DIoN5Ij3a4UoT8DZW9TPpjdE1XEzUAkG/I20FC8RB0iscq+/a2 JS1Oe5iyc8pDIzXFWri3gLCwkpjnC6BXsjBLshUyUSHNxoFPflsDomz5njjZyg== 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 4TrfGs12v5z1914; Fri, 8 Mar 2024 08:19:49 +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 4288Jn2U061853; Fri, 8 Mar 2024 08:19:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4288Jnbe061850; Fri, 8 Mar 2024 08:19:49 GMT (envelope-from git) Date: Fri, 8 Mar 2024 08:19:49 GMT Message-Id: <202403080819.4288Jnbe061850@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: 961271f952fc - stable/13 - Merge commit f800c1f3b207 from llvm-project (by Arthur Eubanks): 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: 961271f952fc390396f967d50903291e3e6c59c6 Auto-Submitted: auto-generated The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=961271f952fc390396f967d50903291e3e6c59c6 commit 961271f952fc390396f967d50903291e3e6c59c6 Author: Dimitry Andric AuthorDate: 2024-03-04 20:30:54 +0000 Commit: Dimitry Andric CommitDate: 2024-03-08 08:19:10 +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); } }