From 22538a37c5b4fd7552cf321e6011d7438c4199d6 Mon Sep 17 00:00:00 2001 From: "William S. Moses" Date: Wed, 17 Feb 2021 13:54:42 -0500 Subject: [PATCH] [SROA] Amend failing test from D95826 --- test/Transforms/SROA/tbaa-struct2.ll | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Transforms/SROA/tbaa-struct2.ll b/test/Transforms/SROA/tbaa-struct2.ll index 75f72f4e996..13075dd8432 100644 --- a/test/Transforms/SROA/tbaa-struct2.ll +++ b/test/Transforms/SROA/tbaa-struct2.ll @@ -35,8 +35,8 @@ define double @bar(%struct.Wishart* %wishart) { ; CHECK-NEXT: %tmp.sroa.2.0.copyload = load i32, i32* %tmp.sroa.2.0.waddr.sroa_idx1, align 8, !tbaa.struct !7 ; CHECK-NEXT: %tmp.sroa.3.0.waddr.sroa_raw_cast = bitcast %struct.Wishart* %wishart to i8* ; CHECK-NEXT: %tmp.sroa.3.0.waddr.sroa_raw_idx = getelementptr inbounds i8, i8* %tmp.sroa.3.0.waddr.sroa_raw_cast, i64 12 -; CHECK-NEXT: %tmp.sroa.3.0.tmpaddr.sroa_idx = getelementptr inbounds [4 x i8], [4 x i8]* %tmp.sroa.3, i64 0, i64 0 -; CHECK-NEXT: call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 4 %tmp.sroa.3.0.tmpaddr.sroa_idx, i8* align 4 %tmp.sroa.3.0.waddr.sroa_raw_idx, i64 4, i1 false), !tbaa.struct !8 +; CHECK-NEXT: %[[sroa_idx:.+]] = getelementptr inbounds [4 x i8], [4 x i8]* %tmp.sroa.3, i64 0, i64 0 +; CHECK-NEXT: call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 4 %[[sroa_idx]], i8* align 4 %tmp.sroa.3.0.waddr.sroa_raw_idx, i64 4, i1 false), !tbaa.struct !8 ; CHECK-NEXT: %call = call double @subcall(double %tmp.sroa.0.0.copyload, i32 %tmp.sroa.2.0.copyload) ; CHECK-NEXT: ret double %call ; CHECK-NEXT: } @@ -48,4 +48,4 @@ define double @bar(%struct.Wishart* %wishart) { ; CHECK: !5 = !{!6, !6, i64 0} ; CHECK: !6 = !{!"int", !{{[0-9]+}}, i64 0} ; CHECK: !7 = !{i64 0, i64 4, !5} -; CHECK: !8 = !{} \ No newline at end of file +; CHECK: !8 = !{}