diff options
Diffstat (limited to 'test/Transforms/ScalarRepl/sroa_two.ll')
-rw-r--r-- | test/Transforms/ScalarRepl/sroa_two.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Transforms/ScalarRepl/sroa_two.ll b/test/Transforms/ScalarRepl/sroa_two.ll index d8aa26d..f2285ef 100644 --- a/test/Transforms/ScalarRepl/sroa_two.ll +++ b/test/Transforms/ScalarRepl/sroa_two.ll @@ -2,12 +2,12 @@ define i32 @test(i32 %X) { %Arr = alloca [2 x i32] ; <[2 x i32]*> [#uses=3] - %tmp.0 = getelementptr [2 x i32]* %Arr, i32 0, i32 0 ; <i32*> [#uses=1] + %tmp.0 = getelementptr [2 x i32], [2 x i32]* %Arr, i32 0, i32 0 ; <i32*> [#uses=1] store i32 1, i32* %tmp.0 - %tmp.1 = getelementptr [2 x i32]* %Arr, i32 0, i32 1 ; <i32*> [#uses=1] + %tmp.1 = getelementptr [2 x i32], [2 x i32]* %Arr, i32 0, i32 1 ; <i32*> [#uses=1] store i32 2, i32* %tmp.1 - %tmp.3 = getelementptr [2 x i32]* %Arr, i32 0, i32 %X ; <i32*> [#uses=1] - %tmp.4 = load i32* %tmp.3 ; <i32> [#uses=1] + %tmp.3 = getelementptr [2 x i32], [2 x i32]* %Arr, i32 0, i32 %X ; <i32*> [#uses=1] + %tmp.4 = load i32, i32* %tmp.3 ; <i32> [#uses=1] ret i32 %tmp.4 } |