diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-03 21:25:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-03 21:25:50 +0000 |
commit | db70f8a4424aac5349ba029ef417344fb5848b7d (patch) | |
tree | 6f6e83f0fafbce04b2c35760a4cd6b2b0958d294 /test/Transforms/SCCP | |
parent | 4de099d8ca651e00fa5fac22bace4f4dba2d0292 (diff) | |
download | external_llvm-db70f8a4424aac5349ba029ef417344fb5848b7d.zip external_llvm-db70f8a4424aac5349ba029ef417344fb5848b7d.tar.gz external_llvm-db70f8a4424aac5349ba029ef417344fb5848b7d.tar.bz2 |
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
Diffstat (limited to 'test/Transforms/SCCP')
-rw-r--r-- | test/Transforms/SCCP/empty-struct.ll | 20 | ||||
-rw-r--r-- | test/Transforms/SCCP/ipsccp-basic.ll | 12 |
2 files changed, 11 insertions, 21 deletions
diff --git a/test/Transforms/SCCP/empty-struct.ll b/test/Transforms/SCCP/empty-struct.ll deleted file mode 100644 index 4e3dc69..0000000 --- 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 ; <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 ; <i32>:1 [#uses=1] - ret i32 %1 -} - diff --git a/test/Transforms/SCCP/ipsccp-basic.ll b/test/Transforms/SCCP/ipsccp-basic.ll index 2442c56..b5a0568 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 +} |