[llvm] [AMDGPU] PromoteAlloca: reject known out-of-bounds index (PR #139700)
Robert Imschweiler via llvm-commits
llvm-commits at lists.llvm.org
Wed May 21 02:37:57 PDT 2025
================
@@ -336,7 +337,7 @@ define amdgpu_kernel void @i64_2d_load_store_subvec_3_i64_offset_index(ptr %out)
%gep.01 = getelementptr inbounds [2 x [3 x i64]], ptr addrspace(5) %alloca, i32 0, i32 1, i32 0
store <3 x i64> <i64 0, i64 1, i64 2>, ptr addrspace(5) %gep.00
store <3 x i64> <i64 3, i64 4, i64 5>, ptr addrspace(5) %gep.01
- %gep = getelementptr inbounds [2 x [3 x i64]], ptr addrspace(5) %alloca, i64 0, i64 %sel3
+ %gep = getelementptr inbounds [2 x [3 x i64]], ptr addrspace(5) %alloca, i64 1, i64 %sel3
----------------
ro-i wrote:
I changed this before and did reset it in my last commit. So in comparison to main, it's now unchanged (see https://github.com/llvm/llvm-project/pull/139700/files)
https://github.com/llvm/llvm-project/pull/139700
More information about the llvm-commits
mailing list