From db70f8a4424aac5349ba029ef417344fb5848b7d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 3 Nov 2009 21:25:50 +0000 Subject: [PATCH] merge a test into ipsccp-basic. running llvm-ld to get one pass is... bad. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85945 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/SCCP/empty-struct.ll | 20 -------------------- test/Transforms/SCCP/ipsccp-basic.ll | 12 +++++++++++- 2 files changed, 11 insertions(+), 21 deletions(-) delete mode 100644 test/Transforms/SCCP/empty-struct.ll diff --git a/test/Transforms/SCCP/empty-struct.ll b/test/Transforms/SCCP/empty-struct.ll deleted file mode 100644 index 4e3dc69514e..00000000000 --- a/test/Transforms/SCCP/empty-struct.ll +++ /dev/null @@ -1,20 +0,0 @@ -; RUN: llvm-as < %s > %t.bc -; RUN: llvm-ld %t.bc -o %t.sh -; PR2612 - -@current_foo = internal global { } zeroinitializer - -define i32 @main(...) { -entry: - %retval = alloca i32 ; [#uses=2] - store i32 0, i32* %retval - %local_foo = alloca { } ; <{ }*> [#uses=1] - load { }* @current_foo ; <{ }>:0 [#uses=1] - store { } %0, { }* %local_foo - br label %return - -return: ; preds = %entry - load i32* %retval ; :1 [#uses=1] - ret i32 %1 -} - diff --git a/test/Transforms/SCCP/ipsccp-basic.ll b/test/Transforms/SCCP/ipsccp-basic.ll index 2442c56e019..b5a05686eb2 100644 --- a/test/Transforms/SCCP/ipsccp-basic.ll +++ b/test/Transforms/SCCP/ipsccp-basic.ll @@ -189,9 +189,19 @@ define void @test8b(i32* %P) { %X = call {} @test8a(i32 5, i32* %P) ret void ; CHECK: define void @test8b -; CHECK-NEXT: call {} @test8a +; CHECK-NEXT: call { } @test8a ; CHECK-NEXT: ret void } +;;======================== test9 +@test9g = internal global { } zeroinitializer + +define void @test9() { +entry: + %local_foo = alloca { } + load { }* @current_foo + store { } %0, { }* %local_foo + ret void +}