diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-10 21:22:52 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-04-10 21:23:04 +0000 |
commit | 31195f0bdca6ee2a5e72d07edf13e1d81206d949 (patch) | |
tree | 1b2c9792582e12f5af0b1512e3094425f0dc0df9 /test/Transforms/ScalarRepl/AggregatePromote.ll | |
parent | c75239e6119d0f9a74c57099d91cbc9bde56bf33 (diff) | |
parent | 4c5e43da7792f75567b693105cc53e3f1992ad98 (diff) | |
download | external_llvm-31195f0bdca6ee2a5e72d07edf13e1d81206d949.zip external_llvm-31195f0bdca6ee2a5e72d07edf13e1d81206d949.tar.gz external_llvm-31195f0bdca6ee2a5e72d07edf13e1d81206d949.tar.bz2 |
Merge "Update aosp/master llvm for rebase to r233350"
Diffstat (limited to 'test/Transforms/ScalarRepl/AggregatePromote.ll')
-rw-r--r-- | test/Transforms/ScalarRepl/AggregatePromote.ll | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/Transforms/ScalarRepl/AggregatePromote.ll b/test/Transforms/ScalarRepl/AggregatePromote.ll index 16b3273..f6dfdf5 100644 --- a/test/Transforms/ScalarRepl/AggregatePromote.ll +++ b/test/Transforms/ScalarRepl/AggregatePromote.ll @@ -10,7 +10,7 @@ define i64 @test1(i64 %X) { %B = bitcast i64* %A to i32* ; <i32*> [#uses=1] %C = bitcast i32* %B to i8* ; <i8*> [#uses=1] store i8 0, i8* %C - %Y = load i64* %A ; <i64> [#uses=1] + %Y = load i64, i64* %A ; <i64> [#uses=1] ret i64 %Y } @@ -18,22 +18,22 @@ define i8 @test2(i64 %X) { %X_addr = alloca i64 ; <i64*> [#uses=2] store i64 %X, i64* %X_addr %tmp.0 = bitcast i64* %X_addr to i32* ; <i32*> [#uses=1] - %tmp.1 = getelementptr i32* %tmp.0, i32 1 ; <i32*> [#uses=1] + %tmp.1 = getelementptr i32, i32* %tmp.0, i32 1 ; <i32*> [#uses=1] %tmp.2 = bitcast i32* %tmp.1 to i8* ; <i8*> [#uses=1] - %tmp.3 = getelementptr i8* %tmp.2, i32 3 ; <i8*> [#uses=1] - %tmp.2.upgrd.1 = load i8* %tmp.3 ; <i8> [#uses=1] + %tmp.3 = getelementptr i8, i8* %tmp.2, i32 3 ; <i8*> [#uses=1] + %tmp.2.upgrd.1 = load i8, i8* %tmp.3 ; <i8> [#uses=1] ret i8 %tmp.2.upgrd.1 } define i16 @crafty(i64 %X) { %a = alloca { i64 } ; <{ i64 }*> [#uses=2] - %tmp.0 = getelementptr { i64 }* %a, i32 0, i32 0 ; <i64*> [#uses=1] + %tmp.0 = getelementptr { i64 }, { i64 }* %a, i32 0, i32 0 ; <i64*> [#uses=1] store i64 %X, i64* %tmp.0 %tmp.3 = bitcast { i64 }* %a to [4 x i16]* ; <[4 x i16]*> [#uses=2] - %tmp.4 = getelementptr [4 x i16]* %tmp.3, i32 0, i32 3 ; <i16*> [#uses=1] - %tmp.5 = load i16* %tmp.4 ; <i16> [#uses=1] - %tmp.8 = getelementptr [4 x i16]* %tmp.3, i32 0, i32 2 ; <i16*> [#uses=1] - %tmp.9 = load i16* %tmp.8 ; <i16> [#uses=1] + %tmp.4 = getelementptr [4 x i16], [4 x i16]* %tmp.3, i32 0, i32 3 ; <i16*> [#uses=1] + %tmp.5 = load i16, i16* %tmp.4 ; <i16> [#uses=1] + %tmp.8 = getelementptr [4 x i16], [4 x i16]* %tmp.3, i32 0, i32 2 ; <i16*> [#uses=1] + %tmp.9 = load i16, i16* %tmp.8 ; <i16> [#uses=1] %tmp.10 = or i16 %tmp.9, %tmp.5 ; <i16> [#uses=1] ret i16 %tmp.10 } @@ -42,10 +42,10 @@ define i16 @crafty2(i64 %X) { %a = alloca i64 ; <i64*> [#uses=2] store i64 %X, i64* %a %tmp.3 = bitcast i64* %a to [4 x i16]* ; <[4 x i16]*> [#uses=2] - %tmp.4 = getelementptr [4 x i16]* %tmp.3, i32 0, i32 3 ; <i16*> [#uses=1] - %tmp.5 = load i16* %tmp.4 ; <i16> [#uses=1] - %tmp.8 = getelementptr [4 x i16]* %tmp.3, i32 0, i32 2 ; <i16*> [#uses=1] - %tmp.9 = load i16* %tmp.8 ; <i16> [#uses=1] + %tmp.4 = getelementptr [4 x i16], [4 x i16]* %tmp.3, i32 0, i32 3 ; <i16*> [#uses=1] + %tmp.5 = load i16, i16* %tmp.4 ; <i16> [#uses=1] + %tmp.8 = getelementptr [4 x i16], [4 x i16]* %tmp.3, i32 0, i32 2 ; <i16*> [#uses=1] + %tmp.9 = load i16, i16* %tmp.8 ; <i16> [#uses=1] %tmp.10 = or i16 %tmp.9, %tmp.5 ; <i16> [#uses=1] ret i16 %tmp.10 } |