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/LoadCombine/load-combine-assume.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/LoadCombine/load-combine-assume.ll')
-rw-r--r-- | test/Transforms/LoadCombine/load-combine-assume.ll | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/Transforms/LoadCombine/load-combine-assume.ll b/test/Transforms/LoadCombine/load-combine-assume.ll index 94f6300..2d6d160 100644 --- a/test/Transforms/LoadCombine/load-combine-assume.ll +++ b/test/Transforms/LoadCombine/load-combine-assume.ll @@ -8,14 +8,14 @@ declare void @llvm.assume(i1) nounwind define i64 @test1(i32* nocapture readonly %a, i1 %b) { ; CHECK-LABEL: @test1 -; CHECK-DAG: load i64* %1, align 4 +; CHECK-DAG: load i64, i64* %1, align 4 ; CHECK-DAG: tail call void @llvm.assume(i1 %b) ; CHECK: ret i64 - %load1 = load i32* %a, align 4 + %load1 = load i32, i32* %a, align 4 %conv = zext i32 %load1 to i64 - %arrayidx1 = getelementptr inbounds i32* %a, i64 1 - %load2 = load i32* %arrayidx1, align 4 + %arrayidx1 = getelementptr inbounds i32, i32* %a, i64 1 + %load2 = load i32, i32* %arrayidx1, align 4 tail call void @llvm.assume(i1 %b) %conv2 = zext i32 %load2 to i64 %shl = shl nuw i64 %conv2, 32 @@ -27,15 +27,15 @@ define i64 @test1(i32* nocapture readonly %a, i1 %b) { define i64 @test2(i32* nocapture readonly %a, i1 %b) { ; CHECK-LABEL: @test2 -; CHECK-DAG: load i64* %1, align 4 +; CHECK-DAG: load i64, i64* %1, align 4 ; CHECK-DAG: tail call void @llvm.assume(i1 %b) ; CHECK: ret i64 - %load1 = load i32* %a, align 4 + %load1 = load i32, i32* %a, align 4 %conv = zext i32 %load1 to i64 - %arrayidx1 = getelementptr inbounds i32* %a, i64 1 + %arrayidx1 = getelementptr inbounds i32, i32* %a, i64 1 tail call void @llvm.assume(i1 %b) - %load2 = load i32* %arrayidx1, align 4 + %load2 = load i32, i32* %arrayidx1, align 4 %conv2 = zext i32 %load2 to i64 %shl = shl nuw i64 %conv2, 32 %add = or i64 %shl, %conv |