diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-08 08:55:49 -0700 |
---|---|---|
committer | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-09 15:04:38 -0700 |
commit | 4c5e43da7792f75567b693105cc53e3f1992ad98 (patch) | |
tree | 1b2c9792582e12f5af0b1512e3094425f0dc0df9 /test/Transforms/EarlyCSE/basic.ll | |
parent | c75239e6119d0f9a74c57099d91cbc9bde56bf33 (diff) | |
download | external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.zip external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.tar.gz external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.tar.bz2 |
Update aosp/master llvm for rebase to r233350
Change-Id: I07d935f8793ee8ec6b7da003f6483046594bca49
Diffstat (limited to 'test/Transforms/EarlyCSE/basic.ll')
-rw-r--r-- | test/Transforms/EarlyCSE/basic.ll | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/test/Transforms/EarlyCSE/basic.ll b/test/Transforms/EarlyCSE/basic.ll index a36a103..43b5e60 100644 --- a/test/Transforms/EarlyCSE/basic.ll +++ b/test/Transforms/EarlyCSE/basic.ll @@ -37,8 +37,8 @@ define void @test1(i8 %V, i32 *%P) { ;; Simple load value numbering. ; CHECK-LABEL: @test2( define i32 @test2(i32 *%P) { - %V1 = load i32* %P - %V2 = load i32* %P + %V1 = load i32, i32* %P + %V2 = load i32, i32* %P %Diff = sub i32 %V1, %V2 ret i32 %Diff ; CHECK: ret i32 0 @@ -46,9 +46,9 @@ define i32 @test2(i32 *%P) { ; CHECK-LABEL: @test2a( define i32 @test2a(i32 *%P, i1 %b) { - %V1 = load i32* %P + %V1 = load i32, i32* %P tail call void @llvm.assume(i1 %b) - %V2 = load i32* %P + %V2 = load i32, i32* %P %Diff = sub i32 %V1, %V2 ret i32 %Diff ; CHECK: ret i32 0 @@ -57,13 +57,13 @@ define i32 @test2a(i32 *%P, i1 %b) { ;; Cross block load value numbering. ; CHECK-LABEL: @test3( define i32 @test3(i32 *%P, i1 %Cond) { - %V1 = load i32* %P + %V1 = load i32, i32* %P br i1 %Cond, label %T, label %F T: store i32 4, i32* %P ret i32 42 F: - %V2 = load i32* %P + %V2 = load i32, i32* %P %Diff = sub i32 %V1, %V2 ret i32 %Diff ; CHECK: F: @@ -72,14 +72,14 @@ F: ; CHECK-LABEL: @test3a( define i32 @test3a(i32 *%P, i1 %Cond, i1 %b) { - %V1 = load i32* %P + %V1 = load i32, i32* %P br i1 %Cond, label %T, label %F T: store i32 4, i32* %P ret i32 42 F: tail call void @llvm.assume(i1 %b) - %V2 = load i32* %P + %V2 = load i32, i32* %P %Diff = sub i32 %V1, %V2 ret i32 %Diff ; CHECK: F: @@ -89,7 +89,7 @@ F: ;; Cross block load value numbering stops when stores happen. ; CHECK-LABEL: @test4( define i32 @test4(i32 *%P, i1 %Cond) { - %V1 = load i32* %P + %V1 = load i32, i32* %P br i1 %Cond, label %T, label %F T: ret i32 42 @@ -97,7 +97,7 @@ F: ; Clobbers V1 store i32 42, i32* %P - %V2 = load i32* %P + %V2 = load i32, i32* %P %Diff = sub i32 %V1, %V2 ret i32 %Diff ; CHECK: F: @@ -120,7 +120,7 @@ define i32 @test5(i32 *%P) { ; CHECK-LABEL: @test6( define i32 @test6(i32 *%P) { store i32 42, i32* %P - %V1 = load i32* %P + %V1 = load i32, i32* %P ret i32 %V1 ; CHECK: ret i32 42 } @@ -129,7 +129,7 @@ define i32 @test6(i32 *%P) { define i32 @test6a(i32 *%P, i1 %b) { store i32 42, i32* %P tail call void @llvm.assume(i1 %b) - %V1 = load i32* %P + %V1 = load i32, i32* %P ret i32 %V1 ; CHECK: ret i32 42 } @@ -195,11 +195,11 @@ define void @test11(i32 *%P) { ; CHECK-LABEL: @test12( define i32 @test12(i1 %B, i32* %P1, i32* %P2) { - %load0 = load i32* %P1 - %1 = load atomic i32* %P2 seq_cst, align 4 - %load1 = load i32* %P1 + %load0 = load i32, i32* %P1 + %1 = load atomic i32, i32* %P2 seq_cst, align 4 + %load1 = load i32, i32* %P1 %sel = select i1 %B, i32 %load0, i32 %load1 ret i32 %sel - ; CHECK: load i32* %P1 - ; CHECK: load i32* %P1 + ; CHECK: load i32, i32* %P1 + ; CHECK: load i32, i32* %P1 } |