@@ -157,19 +157,19 @@ define void @sum_of_array3(i32 %x, i32 %y, ptr nocapture %output) {
157157; IR-NEXT: .preheader:
158158; IR-NEXT: [[TMP0:%.*]] = zext i32 [[Y]] to i64
159159; IR-NEXT: [[TMP1:%.*]] = zext i32 [[X]] to i64
160- ; IR-NEXT: [[TMP2:%.*]] = getelementptr [32 x [32 x float]], ptr addrspace(3) @array, i64 0, i64 [[TMP1]], i64 [[TMP0]]
160+ ; IR-NEXT: [[TMP2:%.*]] = getelementptr inbounds [32 x [32 x float]], ptr addrspace(3) @array, i64 0, i64 [[TMP1]], i64 [[TMP0]]
161161; IR-NEXT: [[TMP3:%.*]] = addrspacecast ptr addrspace(3) [[TMP2]] to ptr
162162; IR-NEXT: [[TMP4:%.*]] = load float, ptr [[TMP3]], align 4
163163; IR-NEXT: [[TMP5:%.*]] = fadd float [[TMP4]], 0.000000e+00
164- ; IR-NEXT: [[TMP6:%.*]] = getelementptr i8, ptr addrspace(3) [[TMP2]], i64 4
164+ ; IR-NEXT: [[TMP6:%.*]] = getelementptr inbounds i8, ptr addrspace(3) [[TMP2]], i64 4
165165; IR-NEXT: [[TMP7:%.*]] = addrspacecast ptr addrspace(3) [[TMP6]] to ptr
166166; IR-NEXT: [[TMP8:%.*]] = load float, ptr [[TMP7]], align 4
167167; IR-NEXT: [[TMP9:%.*]] = fadd float [[TMP5]], [[TMP8]]
168- ; IR-NEXT: [[TMP10:%.*]] = getelementptr i8, ptr addrspace(3) [[TMP2]], i64 128
168+ ; IR-NEXT: [[TMP10:%.*]] = getelementptr inbounds i8, ptr addrspace(3) [[TMP2]], i64 128
169169; IR-NEXT: [[TMP11:%.*]] = addrspacecast ptr addrspace(3) [[TMP10]] to ptr
170170; IR-NEXT: [[TMP12:%.*]] = load float, ptr [[TMP11]], align 4
171171; IR-NEXT: [[TMP13:%.*]] = fadd float [[TMP9]], [[TMP12]]
172- ; IR-NEXT: [[TMP14:%.*]] = getelementptr i8, ptr addrspace(3) [[TMP2]], i64 132
172+ ; IR-NEXT: [[TMP14:%.*]] = getelementptr inbounds i8, ptr addrspace(3) [[TMP2]], i64 132
173173; IR-NEXT: [[TMP15:%.*]] = addrspacecast ptr addrspace(3) [[TMP14]] to ptr
174174; IR-NEXT: [[TMP16:%.*]] = load float, ptr [[TMP15]], align 4
175175; IR-NEXT: [[TMP17:%.*]] = fadd float [[TMP13]], [[TMP16]]
@@ -224,19 +224,19 @@ define void @sum_of_array4(i32 %x, i32 %y, ptr nocapture %output) {
224224; IR-NEXT: .preheader:
225225; IR-NEXT: [[TMP0:%.*]] = zext i32 [[Y]] to i64
226226; IR-NEXT: [[TMP1:%.*]] = zext i32 [[X]] to i64
227- ; IR-NEXT: [[TMP2:%.*]] = getelementptr [32 x [32 x float]], ptr addrspace(3) @array, i64 0, i64 [[TMP1]], i64 [[TMP0]]
227+ ; IR-NEXT: [[TMP2:%.*]] = getelementptr inbounds [32 x [32 x float]], ptr addrspace(3) @array, i64 0, i64 [[TMP1]], i64 [[TMP0]]
228228; IR-NEXT: [[TMP3:%.*]] = addrspacecast ptr addrspace(3) [[TMP2]] to ptr
229229; IR-NEXT: [[TMP4:%.*]] = load float, ptr [[TMP3]], align 4
230230; IR-NEXT: [[TMP5:%.*]] = fadd float [[TMP4]], 0.000000e+00
231- ; IR-NEXT: [[TMP6:%.*]] = getelementptr i8, ptr addrspace(3) [[TMP2]], i64 4
231+ ; IR-NEXT: [[TMP6:%.*]] = getelementptr inbounds i8, ptr addrspace(3) [[TMP2]], i64 4
232232; IR-NEXT: [[TMP7:%.*]] = addrspacecast ptr addrspace(3) [[TMP6]] to ptr
233233; IR-NEXT: [[TMP8:%.*]] = load float, ptr [[TMP7]], align 4
234234; IR-NEXT: [[TMP9:%.*]] = fadd float [[TMP5]], [[TMP8]]
235- ; IR-NEXT: [[TMP10:%.*]] = getelementptr i8, ptr addrspace(3) [[TMP2]], i64 128
235+ ; IR-NEXT: [[TMP10:%.*]] = getelementptr inbounds i8, ptr addrspace(3) [[TMP2]], i64 128
236236; IR-NEXT: [[TMP11:%.*]] = addrspacecast ptr addrspace(3) [[TMP10]] to ptr
237237; IR-NEXT: [[TMP12:%.*]] = load float, ptr [[TMP11]], align 4
238238; IR-NEXT: [[TMP13:%.*]] = fadd float [[TMP9]], [[TMP12]]
239- ; IR-NEXT: [[TMP14:%.*]] = getelementptr i8, ptr addrspace(3) [[TMP2]], i64 132
239+ ; IR-NEXT: [[TMP14:%.*]] = getelementptr inbounds i8, ptr addrspace(3) [[TMP2]], i64 132
240240; IR-NEXT: [[TMP15:%.*]] = addrspacecast ptr addrspace(3) [[TMP14]] to ptr
241241; IR-NEXT: [[TMP16:%.*]] = load float, ptr [[TMP15]], align 4
242242; IR-NEXT: [[TMP17:%.*]] = fadd float [[TMP13]], [[TMP16]]
0 commit comments