[llvm] 0ad88c1 - [MemCpyOpt] remove byval from memcpy size crtical test(NFC)

via llvm-commits llvm-commits at lists.llvm.org
Mon May 29 00:56:15 PDT 2023


Author: khei4
Date: 2023-05-29T16:56:07+09:00
New Revision: 0ad88c156ebdf0582aebb9a41b1c917eafb5beb9

URL: https://github.com/llvm/llvm-project/commit/0ad88c156ebdf0582aebb9a41b1c917eafb5beb9
DIFF: https://github.com/llvm/llvm-project/commit/0ad88c156ebdf0582aebb9a41b1c917eafb5beb9.diff

LOG: [MemCpyOpt] remove byval from memcpy size crtical test(NFC)
Differential Revision: https://reviews.llvm.org/D151626
Reviewed By: nikic

Added: 
    

Modified: 
    llvm/test/Transforms/MemCpyOpt/smaller.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/MemCpyOpt/smaller.ll b/llvm/test/Transforms/MemCpyOpt/smaller.ll
index 89a51239e8571..bde6f264de5da 100644
--- a/llvm/test/Transforms/MemCpyOpt/smaller.ll
+++ b/llvm/test/Transforms/MemCpyOpt/smaller.ll
@@ -19,10 +19,10 @@ define void @foo() nounwind {
 ; CHECK-LABEL: @foo(
 ; CHECK-NEXT:  entry:
 ; CHECK-NEXT:    [[AGG_TMP:%.*]] = alloca [[STRUCT_S:%.*]], align 4
-; CHECK-NEXT:    store i32 99, ptr getelementptr inbounds (%struct.s, ptr @cell, i32 0, i32 1), align 4
+; CHECK-NEXT:    store i32 99, ptr getelementptr inbounds ([[STRUCT_S]], ptr @cell, i32 0, i32 1), align 4
 ; CHECK-NEXT:    call void @llvm.memcpy.p0.p0.i32(ptr align 1 @cell, ptr align 1 @.str, i32 11, i1 false)
 ; CHECK-NEXT:    call void @llvm.memcpy.p0.p0.i32(ptr align 4 [[AGG_TMP]], ptr align 4 @cell, i32 16, i1 false)
-; CHECK-NEXT:    call void @check(ptr byval(%struct.s) [[AGG_TMP]])
+; CHECK-NEXT:    call void @check(ptr [[AGG_TMP]])
 ; CHECK-NEXT:    ret void
 ;
 entry:
@@ -30,6 +30,6 @@ entry:
   store i32 99, ptr getelementptr inbounds (%struct.s, ptr @cell, i32 0, i32 1), align 4
   call void @llvm.memcpy.p0.p0.i32(ptr align 1 @cell, ptr align 1 @.str, i32 11, i1 false)
   call void @llvm.memcpy.p0.p0.i32(ptr align 4 %agg.tmp, ptr align 4 @cell, i32 16, i1 false)
-  call void @check(ptr byval(%struct.s) %agg.tmp)
+  call void @check(ptr %agg.tmp)
   ret void
 }


        


More information about the llvm-commits mailing list