diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-10 22:08:18 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-04-10 22:08:18 +0000 |
commit | 13a7db5b9c4f5e543d037be68ec3428216bfd550 (patch) | |
tree | 1b2c9792582e12f5af0b1512e3094425f0dc0df9 /test/Transforms/DeadStoreElimination/PartialStore.ll | |
parent | 0eb46f5d1e06a4284663d636a74b06adc3a161d7 (diff) | |
parent | 31195f0bdca6ee2a5e72d07edf13e1d81206d949 (diff) | |
download | external_llvm-13a7db5b9c4f5e543d037be68ec3428216bfd550.zip external_llvm-13a7db5b9c4f5e543d037be68ec3428216bfd550.tar.gz external_llvm-13a7db5b9c4f5e543d037be68ec3428216bfd550.tar.bz2 |
am 31195f0b: Merge "Update aosp/master llvm for rebase to r233350"
* commit '31195f0bdca6ee2a5e72d07edf13e1d81206d949':
Update aosp/master llvm for rebase to r233350
Diffstat (limited to 'test/Transforms/DeadStoreElimination/PartialStore.ll')
-rw-r--r-- | test/Transforms/DeadStoreElimination/PartialStore.ll | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/Transforms/DeadStoreElimination/PartialStore.ll b/test/Transforms/DeadStoreElimination/PartialStore.ll index 80c2bfa..d85b4de 100644 --- a/test/Transforms/DeadStoreElimination/PartialStore.ll +++ b/test/Transforms/DeadStoreElimination/PartialStore.ll @@ -30,8 +30,8 @@ define i32 @test3(double %__x) { %__u = alloca { [3 x i32] } %tmp.1 = bitcast { [3 x i32] }* %__u to double* store double %__x, double* %tmp.1 - %tmp.4 = getelementptr { [3 x i32] }* %__u, i32 0, i32 0, i32 1 - %tmp.5 = load i32* %tmp.4 + %tmp.4 = getelementptr { [3 x i32] }, { [3 x i32] }* %__u, i32 0, i32 0, i32 1 + %tmp.5 = load i32, i32* %tmp.4 %tmp.6 = icmp slt i32 %tmp.5, 0 %tmp.7 = zext i1 %tmp.6 to i32 ret i32 %tmp.7 @@ -44,7 +44,7 @@ define void @test4(i8* %P) { ; CHECK-NEXT: store double store i8 19, i8* %P ;; dead - %A = getelementptr i8* %P, i32 3 + %A = getelementptr i8, i8* %P, i32 3 store i8 42, i8* %A ;; dead @@ -58,7 +58,7 @@ declare void @test5a(i32*) define void @test5(i32 %i) nounwind ssp { %A = alloca i32 %B = bitcast i32* %A to i8* - %C = getelementptr i8* %B, i32 %i + %C = getelementptr i8, i8* %B, i32 %i store i8 10, i8* %C ;; Dead store to variable index. store i32 20, i32* %A @@ -74,7 +74,7 @@ declare void @test5a_as1(i32*) define void @test5_addrspacecast(i32 %i) nounwind ssp { %A = alloca i32 %B = addrspacecast i32* %A to i8 addrspace(1)* - %C = getelementptr i8 addrspace(1)* %B, i32 %i + %C = getelementptr i8, i8 addrspace(1)* %B, i32 %i store i8 10, i8 addrspace(1)* %C ;; Dead store to variable index. store i32 20, i32* %A |