[llvm] r340099 - [AST[Tests] Shorten tests using noalias params
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 17 14:45:57 PDT 2018
Author: reames
Date: Fri Aug 17 14:45:57 2018
New Revision: 340099
URL: http://llvm.org/viewvc/llvm-project?rev=340099&view=rev
Log:
[AST[Tests] Shorten tests using noalias params
Modified:
llvm/trunk/test/Analysis/AliasSet/argmemonly.ll
Modified: llvm/trunk/test/Analysis/AliasSet/argmemonly.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/AliasSet/argmemonly.ll?rev=340099&r1=340098&r2=340099&view=diff
==============================================================================
--- llvm/trunk/test/Analysis/AliasSet/argmemonly.ll (original)
+++ llvm/trunk/test/Analysis/AliasSet/argmemonly.ll Fri Aug 17 14:45:57 2018
@@ -26,10 +26,8 @@ entry:
; CHECK-NEXT: Unknown instructions: call void @my_memmove(i8* %d, i8* %s, i64 1)
; CHECK-NEXT: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Pointers: (i8* %b, 1)
-define void @test3(i8* %s, i8* %d) {
+define void @test3(i8* noalias %a, i8* noalias %b, i8* %s, i8* %d) {
entry:
- %a = alloca i8, align 1
- %b = alloca i8, align 1
store i8 1, i8* %a, align 1
call void @my_memmove(i8* %d, i8* %s, i64 1)
store i8 1, i8* %b, align 1
@@ -40,10 +38,8 @@ entry:
; CHECK-NEXT: Alias Set Tracker: 1 alias sets for 2 pointer values.
; CHECK-NEXT: AliasSet[0x{{[0-9a-f]+}}, 3] may alias, Mod/Ref Pointers: (i8* %a, 1), (i8* %b, 1)
; CHECK-NEXT: 1 Unknown instructions: call void @my_memcpy(i8* %b, i8* %a, i64 1)
-define void @test5() {
+define void @test5(i8* noalias %a, i8* noalias %b) {
entry:
- %a = alloca i8, align 1
- %b = alloca i8, align 1
store i8 1, i8* %a, align 1
call void @my_memcpy(i8* %b, i8* %a, i64 1)
store i8 1, i8* %b, align 1
@@ -54,10 +50,8 @@ entry:
; CHECK-NEXT: Alias Set Tracker: 1 alias sets for 2 pointer values.
; CHECK-NEXT: AliasSet[0x{{[0-9a-f]+}}, 3] may alias, Mod/Ref Pointers: (i8* %a, 1), (i8* %b, 1)
; CHECK-NEXT: 1 Unknown instructions: call void @my_memmove(i8* %b, i8* %a, i64 1)
-define void @test6() {
+define void @test6(i8* noalias %a, i8* noalias %b) {
entry:
- %a = alloca i8, align 1
- %b = alloca i8, align 1
store i8 1, i8* %a, align 1
call void @my_memmove(i8* %b, i8* %a, i64 1)
store i8 1, i8* %b, align 1
@@ -69,10 +63,8 @@ entry:
; CHECK-NEXT: AliasSet[0x{{[0-9a-f]+}}, 3] may alias, Mod/Ref Pointers: (i8* %a, 1), (i8* %b, 1)
; CHECK-NEXT: 2 Unknown instructions: call void @my_memcpy(i8* %b, i8* %a, i64 1), call void @my_memcpy(i8* %a, i8* %b, i64 1)
-define void @test7() {
+define void @test7(i8* noalias %a, i8* noalias %b) {
entry:
- %a = alloca i8, align 1
- %b = alloca i8, align 1
store i8 1, i8* %a, align 1
call void @my_memcpy(i8* %b, i8* %a, i64 1)
call void @my_memcpy(i8* %a, i8* %b, i64 1)
More information about the llvm-commits
mailing list