[llvm] 34ade57 - PGOProfile: Convert tests to opaque pointers

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 27 18:13:13 PST 2022


Author: Fangrui Song
Date: 2022-11-27T18:13:09-08:00
New Revision: 34ade570195f4e79ee25c51e343f7c6ee8f997eb

URL: https://github.com/llvm/llvm-project/commit/34ade570195f4e79ee25c51e343f7c6ee8f997eb
DIFF: https://github.com/llvm/llvm-project/commit/34ade570195f4e79ee25c51e343f7c6ee8f997eb.diff

LOG: PGOProfile: Convert tests to opaque pointers

Added: 
    

Modified: 
    llvm/test/Transforms/PGOProfile/mismatched-byval.ll
    llvm/test/Transforms/PGOProfile/mismatched-inalloca.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/PGOProfile/mismatched-byval.ll b/llvm/test/Transforms/PGOProfile/mismatched-byval.ll
index 84c335c678473..fa3ffe3b24cfb 100644
--- a/llvm/test/Transforms/PGOProfile/mismatched-byval.ll
+++ b/llvm/test/Transforms/PGOProfile/mismatched-byval.ll
@@ -2,18 +2,18 @@
 
 ; CHECK: byval mismatch
 
-define void @a(i8* %0) !prof !0 {
+define void @a(ptr %0) !prof !0 {
   ret void
 }
 
-define void @b(void (i64*)** %v, i64* %p) !prof !1 {
+define void @b(ptr %v, ptr %p) !prof !1 {
 ; CHECK-LABEL: @b
 ; CHECK-NEXT: load
-; CHECK-NEXT: call void {{.*}}(i64* byval(i64)
+; CHECK-NEXT: call void {{.*}}(ptr byval(i64)
 ; CHECK-NEXT: ret void
 ;
-  %a = load void (i64*)*, void (i64*)** %v
-  call void %a(i64* byval(i64) %p), !prof !2
+  %a = load ptr, ptr %v
+  call void %a(ptr byval(i64) %p), !prof !2
   ret void
 }
 

diff  --git a/llvm/test/Transforms/PGOProfile/mismatched-inalloca.ll b/llvm/test/Transforms/PGOProfile/mismatched-inalloca.ll
index 5ac174cd7c733..a403835bbe1f9 100644
--- a/llvm/test/Transforms/PGOProfile/mismatched-inalloca.ll
+++ b/llvm/test/Transforms/PGOProfile/mismatched-inalloca.ll
@@ -2,17 +2,17 @@
 
 ; CHECK: inalloca mismatch
 
-define void @a(i8* %0) !prof !0 {
+define void @a(ptr %0) !prof !0 {
   ret void
 }
 
-define void @b(void (i64*)** %v, i64* %p) !prof !1 {
+define void @b(ptr %v, ptr %p) !prof !1 {
 ; CHECK-LABEL: @b
 ; CHECK-NEXT: load
-; CHECK-NEXT: call void {{.*}}(i64* inalloca(i64)
+; CHECK-NEXT: call void {{.*}}(ptr inalloca(i64)
 ; CHECK-NEXT: ret void
-  %a = load void (i64*)*, void (i64*)** %v
-  call void %a(i64* inalloca(i64) %p), !prof !2
+  %a = load ptr, ptr %v
+  call void %a(ptr inalloca(i64) %p), !prof !2
   ret void
 }
 


        


More information about the llvm-commits mailing list