From nobody Mon Apr 8 07:47:10 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 4VCh4v14TPz5GSSl; Mon, 8 Apr 2024 07:47:11 +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 4VCh4v0Dvpz4HpJ; Mon, 8 Apr 2024 07:47:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712562431; 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=m2Qb6TdhixpL4i0jNXtfBwnCooozW3DrQvop2cOlTqs=; b=dzgAnBOSj0eGWPwxYtwwPal2XvyvY74obc58k/veIllcV4Jw90tWkeTWRy7sgVIHV8EAlk jaRIZvcKJLiVki8fSp55h4OtdqyVM9MonEOUm5ag+WUsbhBXJJkbtMUMtwjydYNIwq2OkW E5qBPbC0zuuvvRyLcYZ/Wj+GyXdEaTt8tKE/TamgSSN+Sa3nae4xfmxNnAdNpqIh2bqnat VFh7dGG2eNp68DCP018yBk08lVSqRj/y9Q5Tq8RYAuzZl0Blb8wUpT+bj7wm5opnUPq8NN Jn6fClYtizWIWgn+rhdtRk/WXD24hu9RZoeqBUE/NrZZQBugVH/JZEYEacxrTw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712562431; a=rsa-sha256; cv=none; b=qz5MoYoChxfmKXQNbHj2lN/4BX8itl5PlQ6whD1gxK78rI88nyen8EZgy7E+Zn9Uuwr5Hi zQ4a1Y5C3r24YVcR5K5ok4EIeMI/YoDa82kvikIiB3uMaaEVDe06YA5b93FY3tqfMt2SGO G7oIxEoZvu13efFC5OAHGVhRdhBOiPXPZjqfMboCi5Ihv0K97PbrbA99DVBo8RSZGYDaeB 3vq5YuCmoVto3m4lfV/gBO39PNCkhpp32DWSaP+mF/wCuuQ/yZhWHXCTFFDrUQIqqyRfNt pXRXAr7GXbVhg4GATmDO2fUGIq1M83G3XAtBU2sBO+0lsrxqPoK8vStDTS974Q== 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=1712562431; 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=m2Qb6TdhixpL4i0jNXtfBwnCooozW3DrQvop2cOlTqs=; b=cNMFOI2pWnq1F6h4nn8iTFVUI1ZPux5CF5cfSBLmfyZ6vlhbokzrRcGBplNzU8dAoOkhnm Ubr+sckPsWqiK7zcFSFizzmNQL8/DlNNw/DMKkhNGecpGU5y1VxXCr+J5HdQ29eqN+oFBw L1UN0A7xpNKYsJPc3esduXaRsbfY6enVqci2voQ6ToXNhYcKjqZB1sb/ClY7RYdMYheQ/Q ucJ6p1FFB1lfIdgl9wAcQ5N6lgVvfAW9S3cnwLZSpzTO2JWuLuuICES60o3fO4UFzfRdRL zzpU/WGwEinrLsfUGdSsTHd9QS/zEHZwW+TC9fO9nmuBvXCGIvC+hhdouqbggg== 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 4VCh4t6xdgz139q; Mon, 8 Apr 2024 07:47:10 +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 4387lAkv043665; Mon, 8 Apr 2024 07:47:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4387lAbE043662; Mon, 8 Apr 2024 07:47:10 GMT (envelope-from git) Date: Mon, 8 Apr 2024 07:47:10 GMT Message-Id: <202404080747.4387lAbE043662@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: 17e32453b89d - stable/13 - Merge commit eb8f379567e8 from llvm-project (by Florian Hahn): 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/13 X-Git-Reftype: branch X-Git-Commit: 17e32453b89d48db0d2f9e8086952df7d423423c Auto-Submitted: auto-generated The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=17e32453b89d48db0d2f9e8086952df7d423423c commit 17e32453b89d48db0d2f9e8086952df7d423423c Author: Dimitry Andric AuthorDate: 2024-04-05 13:00:12 +0000 Commit: Dimitry Andric CommitDate: 2024-04-08 07:42:20 +0000 Merge commit eb8f379567e8 from llvm-project (by Florian Hahn): [DSE] Remove malloc from EarliestEscapeInfo before removing. (#84157) Not removing the malloc from earliest escape info leaves stale entries in the cache. Fixes https://github.com/llvm/llvm-project/issues/84051. PR: https://github.com/llvm/llvm-project/pull/84157 This fixes a crash in clang (usually a bus error, but can also be another memory error) when compiling the science/siconos port. PR: 278174 Reported by: yuri MFC after: 3 days (cherry picked from commit aaabed1dea7c1d16cdc5457bf6dee74164104e26) --- .../llvm-project/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/llvm-project/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/contrib/llvm-project/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp index d3fbe49439a8..62a9b6a41c5b 100644 --- a/contrib/llvm-project/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp +++ b/contrib/llvm-project/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp @@ -1893,6 +1893,7 @@ struct DSEState { Malloc->getArgOperand(0), IRB, TLI); if (!Calloc) return false; + MemorySSAUpdater Updater(&MSSA); auto *LastDef = cast(Updater.getMemorySSA()->getMemoryAccess(Malloc)); @@ -1901,9 +1902,8 @@ struct DSEState { LastDef); auto *NewAccessMD = cast(NewAccess); Updater.insertDef(NewAccessMD, /*RenameUses=*/true); - Updater.removeMemoryAccess(Malloc); Malloc->replaceAllUsesWith(Calloc); - Malloc->eraseFromParent(); + deleteDeadInstruction(Malloc); return true; }