diff options
author | Stephen Hines <srhines@google.com> | 2014-12-01 14:51:49 -0800 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2014-12-02 16:08:10 -0800 |
commit | 37ed9c199ca639565f6ce88105f9e39e898d82d0 (patch) | |
tree | 8fb36d3910e3ee4c4e1b7422f4f017108efc52f5 /test/Analysis/BasicAA/modref.ll | |
parent | d2327b22152ced7bc46dc629fc908959e8a52d03 (diff) | |
download | external_llvm-37ed9c199ca639565f6ce88105f9e39e898d82d0.tar.gz external_llvm-37ed9c199ca639565f6ce88105f9e39e898d82d0.tar.bz2 external_llvm-37ed9c199ca639565f6ce88105f9e39e898d82d0.zip |
Update aosp/master LLVM for rebase to r222494.
Change-Id: Ic787f5e0124df789bd26f3f24680f45e678eef2d
Diffstat (limited to 'test/Analysis/BasicAA/modref.ll')
-rw-r--r-- | test/Analysis/BasicAA/modref.ll | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/test/Analysis/BasicAA/modref.ll b/test/Analysis/BasicAA/modref.ll index 8421faf9c2..0d8bf71d42 100644 --- a/test/Analysis/BasicAA/modref.ll +++ b/test/Analysis/BasicAA/modref.ll @@ -8,20 +8,20 @@ declare void @external(i32*) define i32 @test0(i8* %P) { %A = alloca i32 call void @external(i32* %A) - + store i32 0, i32* %A - + call void @llvm.memset.p0i8.i32(i8* %P, i8 0, i32 42, i32 1, i1 false) - + %B = load i32* %A ret i32 %B - -; CHECK: @test0 + +; CHECK-LABEL: @test0 ; CHECK: ret i32 0 } define i8 @test1() { -; CHECK: @test1 +; CHECK-LABEL: @test1 %A = alloca i8 %B = alloca i8 @@ -35,7 +35,7 @@ define i8 @test1() { } define i8 @test2(i8* %P) { -; CHECK: @test2 +; CHECK-LABEL: @test2 %P2 = getelementptr i8* %P, i32 127 store i8 1, i8* %P2 ;; Not dead across memset call void @llvm.memset.p0i8.i8(i8* %P, i8 2, i8 127, i32 0, i1 false) @@ -45,12 +45,12 @@ define i8 @test2(i8* %P) { } define i8 @test2a(i8* %P) { -; CHECK: @test2 +; CHECK-LABEL: @test2 %P2 = getelementptr i8* %P, i32 126 - + ;; FIXME: DSE isn't zapping this dead store. store i8 1, i8* %P2 ;; Dead, clobbered by memset. - + call void @llvm.memset.p0i8.i8(i8* %P, i8 2, i8 127, i32 0, i1 false) %A = load i8* %P2 ret i8 %A @@ -59,11 +59,11 @@ define i8 @test2a(i8* %P) { } define void @test3(i8* %P, i8 %X) { -; CHECK: @test3 +; CHECK-LABEL: @test3 ; CHECK-NOT: store ; CHECK-NOT: %Y %Y = add i8 %X, 1 ;; Dead, because the only use (the store) is dead. - + %P2 = getelementptr i8* %P, i32 2 store i8 %Y, i8* %P2 ;; Not read by lifetime.end, should be removed. ; CHECK: store i8 2, i8* %P2 @@ -75,9 +75,9 @@ define void @test3(i8* %P, i8 %X) { } define void @test3a(i8* %P, i8 %X) { -; CHECK: @test3a +; CHECK-LABEL: @test3a %Y = add i8 %X, 1 ;; Dead, because the only use (the store) is dead. - + %P2 = getelementptr i8* %P, i32 2 store i8 %Y, i8* %P2 ; CHECK-NEXT: call void @llvm.lifetime.end @@ -95,7 +95,7 @@ define i32 @test4(i8* %P) { %tmp2 = load i32* @G1 %sub = sub i32 %tmp2, %tmp ret i32 %sub -; CHECK: @test4 +; CHECK-LABEL: @test4 ; CHECK-NOT: load ; CHECK: memset.p0i8.i32 ; CHECK-NOT: load @@ -123,7 +123,7 @@ define i8 @test6(i8* %p, i8* noalias %a) { %y = load i8* %a %z = add i8 %x, %y ret i8 %z -; CHECK: @test6 +; CHECK-LABEL: @test6 ; CHECK: load i8* %a ; CHECK-NOT: load ; CHECK: ret @@ -139,7 +139,7 @@ entry: call void @test7decl(i32* %add.ptr) %tmp = load i32* %x, align 4 ret i32 %tmp -; CHECK: @test7( +; CHECK-LABEL: @test7( ; CHECK: store i32 0 ; CHECK: call void @test7decl ; CHECK: load i32* |