@@ -33,14 +33,14 @@ for.i.header:
33
33
for.j.body:
34
34
%j = phi i64 [ 1 , %for.i.header ], [ %j.next , %for.j.body ]
35
35
%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
39
39
%a = load float , ptr %a.load.index , align 4
40
40
%b = load float , ptr %b.index , align 4
41
41
%c = load float , ptr %c.index , align 4
42
42
%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
44
44
store float %add.0 , ptr %a.store.index , align 4
45
45
%add.1 = fadd float %c , 1 .0
46
46
store float %add.1 , ptr %c.index , align 4
@@ -84,12 +84,12 @@ for.i.header:
84
84
for.j.body:
85
85
%j = phi i64 [ 1 , %for.i.header ], [ %j.next , %for.j.body ]
86
86
%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
89
89
%a = load float , ptr %a.load.index , align 4
90
90
%b = load float , ptr %b.index , align 4
91
91
%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
93
93
store float %add , ptr %a.store.index , align 4
94
94
%j.next = add nuw nsw i64 %j , 1
95
95
%cmp.j = icmp eq i64 %j.next , 256
0 commit comments