[llvm] AMDGPU/PromoteAlloca: Fix handling of users of multiple allocas (PR #172771)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 18 09:30:39 PST 2025


================
@@ -0,0 +1,70 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt -S -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -passes=amdgpu-promote-alloca < %s | FileCheck %s
+
+; This tests the case where a memcpy has two pointer operands are promoted to LDS
+; See `@llvm.memcpy.p5.p5.i64(... %alloca1, ... %alloca, ...)` below.
+
+
+%struct.barney = type { i8, double }
+
+; Function Attrs: nofree norecurse noreturn nounwind memory(readwrite, target_mem0: none, target_mem1: none)
----------------
arsenm wrote:

```suggestion
```

https://github.com/llvm/llvm-project/pull/172771


More information about the llvm-commits mailing list