[llvm] 5997cdb - AMDGPU: Switch an undef in a test for poison

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 6 22:18:13 PST 2025


Author: Matt Arsenault
Date: 2025-03-07T13:18:05+07:00
New Revision: 5997cdb4bcace6d24e7c2fa04dd4f726c48cc561

URL: https://github.com/llvm/llvm-project/commit/5997cdb4bcace6d24e7c2fa04dd4f726c48cc561
DIFF: https://github.com/llvm/llvm-project/commit/5997cdb4bcace6d24e7c2fa04dd4f726c48cc561.diff

LOG: AMDGPU: Switch an undef in a test for poison

Added: 
    

Modified: 
    llvm/test/CodeGen/AMDGPU/copy-to-reg-frameindex.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/AMDGPU/copy-to-reg-frameindex.ll b/llvm/test/CodeGen/AMDGPU/copy-to-reg-frameindex.ll
index 9558d9f0bc4c9..0aea41a190f1e 100644
--- a/llvm/test/CodeGen/AMDGPU/copy-to-reg-frameindex.ll
+++ b/llvm/test/CodeGen/AMDGPU/copy-to-reg-frameindex.ll
@@ -23,15 +23,15 @@ entry:
   br label %loop
 
 loop:
-  %promotealloca = phi <16 x i32> [ undef, %entry ], [ %0, %loop ]
+  %promotealloca = phi <16 x i32> [ poison, %entry ], [ %insert, %loop ]
   %inc = phi i32 [ 0, %entry ], [ %inc.i, %loop ]
-  %0 = insertelement <16 x i32> %promotealloca, i32 %inc, i32 %inc
+  %insert = insertelement <16 x i32> %promotealloca, i32 %inc, i32 %inc
   %inc.i = add i32 %inc, %B
   %cnd = icmp uge i32 %inc.i, 16
   br i1 %cnd, label %done, label %loop
 
 done:
-  %1 = extractelement <16 x i32> %0, i32 0
-  store i32 %1, ptr addrspace(1) %out, align 4
+  %extract.0 = extractelement <16 x i32> %insert, i32 0
+  store i32 %extract.0, ptr addrspace(1) %out, align 4
   ret void
 }


        


More information about the llvm-commits mailing list