[llvm] [AMDGPU] Promote allocas used by phi/select (PR #221870)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 7 23:40:41 PDT 2026


================
@@ -103,16 +107,42 @@ struct MemTransferInfo {
 };
 
 // Analysis for planning the different strategies of alloca promotion.
+//
+// An AllocaAnalysis represents a *group* of one or more allocas that must be
+// promoted together because their pointers are merged by a phi or select. The
+// common case is a singleton group (Members == {Alloca}). When promoting to
+// vector, the whole group becomes a single combined vector value; each member
+// occupies a contiguous lane range starting at Vector.BaseLane[member].
----------------
arsenm wrote:

Verbose AI comment 

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


More information about the llvm-commits mailing list