From aef1b378242dee5f17e440344258460e1dedbb4b Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Mon, 30 Sep 2013 18:17:35 +0000 Subject: TBAA: remove !tbaa from testing cases when they are not needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191689 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/PowerPC/dyn-alloca-aligned.ll | 12 ++++-------- test/CodeGen/PowerPC/isel-rc-nox0.ll | 6 +----- test/CodeGen/PowerPC/stack-realign.ll | 28 ++++++++++++---------------- 3 files changed, 17 insertions(+), 29 deletions(-) (limited to 'test/CodeGen/PowerPC') diff --git a/test/CodeGen/PowerPC/dyn-alloca-aligned.ll b/test/CodeGen/PowerPC/dyn-alloca-aligned.ll index a18ada73ff..a5d45b8e94 100644 --- a/test/CodeGen/PowerPC/dyn-alloca-aligned.ll +++ b/test/CodeGen/PowerPC/dyn-alloca-aligned.ll @@ -12,12 +12,12 @@ entry: %vla = alloca i32, i64 %0, align 128 %vla1 = alloca i32, i64 %0, align 128 %a2 = getelementptr inbounds %struct.s* %a, i64 0, i32 0 - %1 = load i32* %a2, align 4, !tbaa !0 - store i32 %1, i32* %vla1, align 128, !tbaa !0 + %1 = load i32* %a2, align 4 + store i32 %1, i32* %vla1, align 128 %b = getelementptr inbounds %struct.s* %a, i64 0, i32 1 - %2 = load i32* %b, align 4, !tbaa !0 + %2 = load i32* %b, align 4 %arrayidx3 = getelementptr inbounds i32* %vla1, i64 1 - store i32 %2, i32* %arrayidx3, align 4, !tbaa !0 + store i32 %2, i32* %arrayidx3, align 4 call void @bar(i32* %vla1, i32* %vla) #0 ret void @@ -33,7 +33,3 @@ entry: } attributes #0 = { nounwind } - -!0 = metadata !{metadata !"int", metadata !1} -!1 = metadata !{metadata !"omnipotent char", metadata !2} -!2 = metadata !{metadata !"Simple C/C++ TBAA"} diff --git a/test/CodeGen/PowerPC/isel-rc-nox0.ll b/test/CodeGen/PowerPC/isel-rc-nox0.ll index a98eef389d..ac99aa408b 100644 --- a/test/CodeGen/PowerPC/isel-rc-nox0.ll +++ b/test/CodeGen/PowerPC/isel-rc-nox0.ll @@ -22,7 +22,7 @@ crc32_gentab.exit: ; preds = %for.cond1.preheader for.cond1.preheader.i2961.i: ; preds = %for.inc44.i2977.i, %crc32_gentab.exit call void @llvm.memset.p0i8.i64(i8* bitcast ([1 x [9 x i32]]* @g_62 to i8*), i8 -1, i64 36, i32 4, i1 false) #1 - %0 = load i32* %retval.0.i.i.i, align 4, !tbaa !0 + %0 = load i32* %retval.0.i.i.i, align 4 %tobool.i2967.i = icmp eq i32 %0, 0 br label %for.body21.i2968.i @@ -44,7 +44,3 @@ declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i32, i1) #1 attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "ssp-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } attributes #1 = { nounwind } - -!0 = metadata !{metadata !"int", metadata !1} -!1 = metadata !{metadata !"omnipotent char", metadata !2} -!2 = metadata !{metadata !"Simple C/C++ TBAA"} diff --git a/test/CodeGen/PowerPC/stack-realign.ll b/test/CodeGen/PowerPC/stack-realign.ll index f7b6d192c7..1c7a36aeea 100644 --- a/test/CodeGen/PowerPC/stack-realign.ll +++ b/test/CodeGen/PowerPC/stack-realign.ll @@ -11,13 +11,13 @@ define void @goo(%struct.s* byval nocapture readonly %a) { entry: %x = alloca [2 x i32], align 32 %a1 = getelementptr inbounds %struct.s* %a, i64 0, i32 0 - %0 = load i32* %a1, align 4, !tbaa !0 + %0 = load i32* %a1, align 4 %arrayidx = getelementptr inbounds [2 x i32]* %x, i64 0, i64 0 - store i32 %0, i32* %arrayidx, align 32, !tbaa !0 + store i32 %0, i32* %arrayidx, align 32 %b = getelementptr inbounds %struct.s* %a, i64 0, i32 1 - %1 = load i32* %b, align 4, !tbaa !0 + %1 = load i32* %b, align 4 %arrayidx2 = getelementptr inbounds [2 x i32]* %x, i64 0, i64 1 - store i32 %1, i32* %arrayidx2, align 4, !tbaa !0 + store i32 %1, i32* %arrayidx2, align 4 call void @bar(i32* %arrayidx) ret void } @@ -74,13 +74,13 @@ define void @hoo(%struct.s* byval nocapture readonly %a) { entry: %x = alloca [200000 x i32], align 32 %a1 = getelementptr inbounds %struct.s* %a, i64 0, i32 0 - %0 = load i32* %a1, align 4, !tbaa !0 + %0 = load i32* %a1, align 4 %arrayidx = getelementptr inbounds [200000 x i32]* %x, i64 0, i64 0 - store i32 %0, i32* %arrayidx, align 32, !tbaa !0 + store i32 %0, i32* %arrayidx, align 32 %b = getelementptr inbounds %struct.s* %a, i64 0, i32 1 - %1 = load i32* %b, align 4, !tbaa !0 + %1 = load i32* %b, align 4 %arrayidx2 = getelementptr inbounds [200000 x i32]* %x, i64 0, i64 1 - store i32 %1, i32* %arrayidx2, align 4, !tbaa !0 + store i32 %1, i32* %arrayidx2, align 4 call void @bar(i32* %arrayidx) ret void } @@ -105,13 +105,13 @@ define void @loo(%struct.s* byval nocapture readonly %a) { entry: %x = alloca [2 x i32], align 32 %a1 = getelementptr inbounds %struct.s* %a, i64 0, i32 0 - %0 = load i32* %a1, align 4, !tbaa !0 + %0 = load i32* %a1, align 4 %arrayidx = getelementptr inbounds [2 x i32]* %x, i64 0, i64 0 - store i32 %0, i32* %arrayidx, align 32, !tbaa !0 + store i32 %0, i32* %arrayidx, align 32 %b = getelementptr inbounds %struct.s* %a, i64 0, i32 1 - %1 = load i32* %b, align 4, !tbaa !0 + %1 = load i32* %b, align 4 %arrayidx2 = getelementptr inbounds [2 x i32]* %x, i64 0, i64 1 - store i32 %1, i32* %arrayidx2, align 4, !tbaa !0 + store i32 %1, i32* %arrayidx2, align 4 call void @bar(i32* %arrayidx) call void asm sideeffect "", "~{f30}"() nounwind ret void @@ -145,7 +145,3 @@ entry: ; CHECK-FP: stfd 30, -16(30) ; CHECK-FP: blr - -!0 = metadata !{metadata !"int", metadata !1} -!1 = metadata !{metadata !"omnipotent char", metadata !2} -!2 = metadata !{metadata !"Simple C/C++ TBAA"} -- cgit v1.2.3