diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-30 01:06:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-30 01:06:43 +0000 |
commit | feea8fb6b41bab0a135bf9966d68a05665c32899 (patch) | |
tree | e034b0f950e219ec09b1f0db1a3d24632056712d /test/Transforms/DeadStoreElimination | |
parent | 8a2dc0233fa4ef0199a3a3c716f61e4c578fd68d (diff) | |
download | external_llvm-feea8fb6b41bab0a135bf9966d68a05665c32899.zip external_llvm-feea8fb6b41bab0a135bf9966d68a05665c32899.tar.gz external_llvm-feea8fb6b41bab0a135bf9966d68a05665c32899.tar.bz2 |
merge one more away
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120375 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/DeadStoreElimination')
-rw-r--r-- | test/Transforms/DeadStoreElimination/alloca.ll | 9 | ||||
-rw-r--r-- | test/Transforms/DeadStoreElimination/simple.ll | 12 |
2 files changed, 12 insertions, 9 deletions
diff --git a/test/Transforms/DeadStoreElimination/alloca.ll b/test/Transforms/DeadStoreElimination/alloca.ll deleted file mode 100644 index b6818eb..0000000 --- a/test/Transforms/DeadStoreElimination/alloca.ll +++ /dev/null @@ -1,9 +0,0 @@ -; RUN: opt < %s -dse -S | not grep DEAD - -define void @test(i32* %Q) { - %P = alloca i32 ; <i32*> [#uses=1] - %DEAD = load i32* %Q ; <i32> [#uses=1] - store i32 %DEAD, i32* %P - ret void -} - diff --git a/test/Transforms/DeadStoreElimination/simple.ll b/test/Transforms/DeadStoreElimination/simple.ll index abaff30..1aa62bb 100644 --- a/test/Transforms/DeadStoreElimination/simple.ll +++ b/test/Transforms/DeadStoreElimination/simple.ll @@ -165,3 +165,15 @@ define i32* @test13() { declare noalias i8* @malloc(i32) + + +define void @test14(i32* %Q) { + %P = alloca i32 + %DEAD = load i32* %Q + store i32 %DEAD, i32* %P + ret void + +; CHECK: @test14 +; CHECK-NEXT: ret void +} + |