@@ -6,28 +6,28 @@ target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:1
66
77define void @test (i32 %N ) {
88entry:
9- %X = alloca [3 x [3 x i32 ]] ; <[3 x [3 x i32]]* > [#uses=4]
9+ %X = alloca [3 x [3 x i32 ]] ; <ptr > [#uses=4]
1010 %tmp.24 = icmp sgt i32 %N , 0 ; <i1> [#uses=1]
1111 br i1 %tmp.24 , label %no_exit , label %loopexit
1212
1313no_exit: ; preds = %no_exit, %entry
1414 %i.0.0 = phi i32 [ 0 , %entry ], [ %inc , %no_exit ] ; <i32> [#uses=2]
15- %tmp.6 = getelementptr [3 x [3 x i32 ]], [ 3 x [ 3 x i32 ]]* %X , i32 0 , i32 0 , i32 %i.0.0 ; <i32* > [#uses=1]
16- store i32 1 , i32* %tmp.6
17- %tmp.8 = getelementptr [3 x [3 x i32 ]], [ 3 x [ 3 x i32 ]]* %X , i32 0 , i32 0 , i32 0 ; <i32* > [#uses=1]
18- %tmp.9 = load i32 , i32* %tmp.8 ; <i32> [#uses=1]
19- %tmp.11 = getelementptr [3 x [3 x i32 ]], [ 3 x [ 3 x i32 ]]* %X , i32 0 , i32 1 , i32 0 ; <i32* > [#uses=1]
20- %tmp.12 = load i32 , i32* %tmp.11 ; <i32> [#uses=1]
15+ %tmp.6 = getelementptr [3 x [3 x i32 ]], ptr %X , i32 0 , i32 0 , i32 %i.0.0 ; <ptr > [#uses=1]
16+ store i32 1 , ptr %tmp.6
17+ %tmp.8 = getelementptr [3 x [3 x i32 ]], ptr %X , i32 0 , i32 0 , i32 0 ; <ptr > [#uses=1]
18+ %tmp.9 = load i32 , ptr %tmp.8 ; <i32> [#uses=1]
19+ %tmp.11 = getelementptr [3 x [3 x i32 ]], ptr %X , i32 0 , i32 1 , i32 0 ; <ptr > [#uses=1]
20+ %tmp.12 = load i32 , ptr %tmp.11 ; <i32> [#uses=1]
2121 %tmp.13 = add i32 %tmp.12 , %tmp.9 ; <i32> [#uses=1]
2222 %inc = add i32 %i.0.0 , 1 ; <i32> [#uses=2]
2323 %tmp.2 = icmp slt i32 %inc , %N ; <i1> [#uses=1]
2424 br i1 %tmp.2 , label %no_exit , label %loopexit
2525
2626loopexit: ; preds = %no_exit, %entry
2727 %Y.0.1 = phi i32 [ 0 , %entry ], [ %tmp.13 , %no_exit ] ; <i32> [#uses=1]
28- %tmp.4 = getelementptr [3 x [3 x i32 ]], [ 3 x [ 3 x i32 ]]* %X , i32 0 , i32 0 ; <[3 x i32]* > [#uses=1]
29- load [3 x i32 ], [ 3 x i32 ]* %tmp.4
30- %tmp.15 = call i32 (...) @foo ( [ 3 x i32 ]* %tmp.4 , i32 %Y.0.1 ) ; <i32> [#uses=0]
28+ %tmp.4 = getelementptr [3 x [3 x i32 ]], ptr %X , i32 0 , i32 0 ; <ptr > [#uses=1]
29+ load [3 x i32 ], ptr %tmp.4
30+ %tmp.15 = call i32 (...) @foo ( ptr %tmp.4 , i32 %Y.0.1 ) ; <i32> [#uses=0]
3131 ret void
3232}
3333
0 commit comments