Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: test/Transforms/NaCl/expand-varargs-attrs.ll

Issue 14060026: PNaCl: Add NoAlias attributes in ExpandByVal and ExpandVarArgs passes (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/Transforms/NaCl/expand-varargs-attrs.ll
diff --git a/test/Transforms/NaCl/expand-varargs-attrs.ll b/test/Transforms/NaCl/expand-varargs-attrs.ll
index f1a41f9df8538cfc600f0f332ed01d39caf130dc..9a8641557620015dea6979e638206af7aa9a7933 100644
--- a/test/Transforms/NaCl/expand-varargs-attrs.ll
+++ b/test/Transforms/NaCl/expand-varargs-attrs.ll
@@ -20,7 +20,7 @@ define void @call_with_arg_attrs(%MyStruct* %s) {
ret void
}
; CHECK: define void @call_with_arg_attrs(%MyStruct* %s) {
-; CHECK: call void %vararg_func(%MyStruct* byval %s, %vararg_call{{.*}} %vararg_buffer)
+; CHECK: call void %vararg_func(%MyStruct* byval %s, %vararg_call{{.*}} noalias %vararg_buffer)
; The "byval" attribute here should be dropped.
@@ -29,7 +29,7 @@ define i32 @pass_struct_via_vararg1(%MyStruct* %s) {
ret i32 %result
}
; CHECK: define i32 @pass_struct_via_vararg1(%MyStruct* %s) {
-; CHECK: %result = call i32 %vararg_func(i32 111, %{{.*}}* %vararg_buffer)
+; CHECK: %result = call i32 %vararg_func(i32 111, %{{.*}}* noalias %vararg_buffer)
; The "byval" attribute here should be dropped.
@@ -38,7 +38,7 @@ define i32 @pass_struct_via_vararg2(%MyStruct* %s) {
ret i32 %result
}
; CHECK: define i32 @pass_struct_via_vararg2(%MyStruct* %s) {
-; CHECK: %result = call i32 %vararg_func(i32 111, %{{.*}}* %vararg_buffer)
+; CHECK: %result = call i32 %vararg_func(i32 111, %{{.*}}* noalias %vararg_buffer)
; Check that return attributes such as "signext" are preserved.
« test/Transforms/NaCl/expand-varargs.ll ('K') | « test/Transforms/NaCl/expand-varargs.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698