@@ -33,14 +33,14 @@ for.i.header:
3333for.j.body:
3434 %j = phi i64 [ 1 , %for.i.header ], [ %j.next , %for.j.body ]
3535 %j.dec = add nsw i64 %j , -1
36- %a.load.index = getelementptr nuw inbounds [256 x [256 x float ]], ptr @A , i64 %i , i64 %j.dec
37- %b.index = getelementptr nuw inbounds [256 x [256 x float ]], ptr @B , i64 %i , i64 %j
38- %c.index = getelementptr nuw inbounds [256 x [256 x float ]], ptr @C , i64 %i , i64 %j
36+ %a.load.index = getelementptr nuw inbounds [256 x [256 x float ]], ptr @A , i64 0 , i64 %i , i64 %j.dec
37+ %b.index = getelementptr nuw inbounds [256 x [256 x float ]], ptr @B , i64 0 , i64 %i , i64 %j
38+ %c.index = getelementptr nuw inbounds [256 x [256 x float ]], ptr @C , i64 0 , i64 %i , i64 %j
3939 %a = load float , ptr %a.load.index , align 4
4040 %b = load float , ptr %b.index , align 4
4141 %c = load float , ptr %c.index , align 4
4242 %add.0 = fadd float %a , %b
43- %a.store.index = getelementptr nuw inbounds [256 x [256 x float ]], ptr @A , i64 %i , i64 %j
43+ %a.store.index = getelementptr nuw inbounds [256 x [256 x float ]], ptr @A , i64 0 , i64 %i , i64 %j
4444 store float %add.0 , ptr %a.store.index , align 4
4545 %add.1 = fadd float %c , 1 .0
4646 store float %add.1 , ptr %c.index , align 4
@@ -84,12 +84,12 @@ for.i.header:
8484for.j.body:
8585 %j = phi i64 [ 1 , %for.i.header ], [ %j.next , %for.j.body ]
8686 %j.dec = add nsw i64 %j , -1
87- %a.load.index = getelementptr nuw inbounds [256 x [256 x float ]], ptr @A , i64 %i , i64 %j
88- %b.index = getelementptr nuw inbounds [256 x [256 x float ]], ptr @B , i64 %i , i64 %j
87+ %a.load.index = getelementptr nuw inbounds [256 x [256 x float ]], ptr @A , i64 0 , i64 %i , i64 %j
88+ %b.index = getelementptr nuw inbounds [256 x [256 x float ]], ptr @B , i64 0 , i64 %i , i64 %j
8989 %a = load float , ptr %a.load.index , align 4
9090 %b = load float , ptr %b.index , align 4
9191 %add = fadd float %a , %b
92- %a.store.index = getelementptr nuw inbounds [256 x [256 x float ]], ptr @A , i64 %i , i64 %j.dec
92+ %a.store.index = getelementptr nuw inbounds [256 x [256 x float ]], ptr @A , i64 0 , i64 %i , i64 %j.dec
9393 store float %add , ptr %a.store.index , align 4
9494 %j.next = add nuw nsw i64 %j , 1
9595 %cmp.j = icmp eq i64 %j.next , 256
0 commit comments