Merge commit eb8f379567e8 from llvm-project (by Florian Hahn):
authorDimitry Andric <dim@FreeBSD.org>
Fri, 5 Apr 2024 13:00:12 +0000 (15:00 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Fri, 5 Apr 2024 15:44:49 +0000 (17:44 +0200)
commitaaabed1dea7c1d16cdc5457bf6dee74164104e26
tree4e83446088ab7ded16c3d3a84ce5faad8e19c416
parentfd56d24725860a3c1f12180cf8503d38d8d0c70d
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
contrib/llvm-project/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp