[llvm] [AMDGPU][PromoteAlloca] Correctly handle a variable vector index (PR #83597)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 3 21:21:06 PST 2024


================
@@ -0,0 +1,35 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
+; RUN: opt -S -mtriple=amdgcn-unknown-amdhsa -passes=amdgpu-promote-alloca < %s | FileCheck %s
+
+; Check that promoting an alloca to a vector form works correctly when a variable
+; vector index is used.
+
+define amdgpu_kernel void @non_constant_index(i32 %0) {
----------------
arsenm wrote:

Run opt -S -p=instnamer on the test 

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


More information about the llvm-commits mailing list