[llvm] [AMDGPU] Avoid dangling SSAUpdater reference in PromoteAlloca full-vector store (PR #215686)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 15:49:29 PDT 2026
================
@@ -52,6 +53,60 @@ using namespace llvm;
namespace {
+/// Wrapper around SSAUpdater that uses TrackingVH to keep available values
+/// up-to-date when the original values are RAUW'd or deleted. The plain
+/// SSAUpdater stores raw Value* pointers that become dangling when a value it
+/// holds is replaced and erased.
+class TrackingSSAUpdater {
----------------
carlobertolli wrote:
done, moved next to SSAUpdater.
https://github.com/llvm/llvm-project/pull/215686
More information about the llvm-commits
mailing list