summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-06-21 00:31:44 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-06-21 00:31:44 +0000
commit33067210d15b7c37b3cc5ca0ef541fa4260965dc (patch)
tree2db123b28e4ffb56019bad0041382c93d6d04b74 /llvm/test
parent9f9aefdc89e4e207f1e902bda8decaa0843c89ff (diff)
downloadbcm5719-llvm-33067210d15b7c37b3cc5ca0ef541fa4260965dc.tar.gz
bcm5719-llvm-33067210d15b7c37b3cc5ca0ef541fa4260965dc.zip
Back out Matthijs' DAE patches. It's miscompiling gcc driver.
llvm-svn: 52570
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Transforms/DeadArgElim/multdeadretval.ll39
1 files changed, 0 insertions, 39 deletions
diff --git a/llvm/test/Transforms/DeadArgElim/multdeadretval.ll b/llvm/test/Transforms/DeadArgElim/multdeadretval.ll
index bccd0dfdb32..e69de29bb2d 100644
--- a/llvm/test/Transforms/DeadArgElim/multdeadretval.ll
+++ b/llvm/test/Transforms/DeadArgElim/multdeadretval.ll
@@ -1,39 +0,0 @@
-; This test sees if return values (and arguments) are properly removed when they
-; are unused. All unused values are typed i16, so we can easily check. We also
-; run instcombine to fold insert/extractvalue chains and we run dce to clean up
-; any remaining dead stuff.
-; RUN: llvm-as < %s | opt -deadargelim -instcombine -dce | llvm-dis | not grep i16
-
-define internal {i16, i32} @test(i16 %DEADARG) {
- %A = insertvalue {i16,i32} undef, i16 1, 0
- %B = insertvalue {i16,i32} %A, i32 1001, 1
- ret {i16,i32} %B
-}
-
-define internal {i32, i16} @test2() {
- %DEAD = call i16 @test4()
- %A = insertvalue {i32,i16} undef, i32 1, 0
- %B = insertvalue {i32,i16} %A, i16 %DEAD, 1
- ret {i32,i16} %B
-}
-
-define internal i32 @test3(i16 %A) {
- %ret = call {i16, i32} @test( i16 %A ) ; <i32> [#uses=0]
- %DEAD = extractvalue {i16, i32} %ret, 0
- %LIVE = extractvalue {i16, i32} %ret, 1
- ret i32 %LIVE
-}
-
-define internal i16 @test4() {
- ret i16 0
-}
-
-define i32 @main() {
- %ret = call {i32, i16} @test2() ; <i32> [#uses=1]
- %LIVE = extractvalue {i32, i16} %ret, 0
- %DEAD = extractvalue {i32, i16} %ret, 1
- %Y = add i32 %LIVE, -123 ; <i32> [#uses=1]
- %LIVE2 = call i32 @test3(i16 %DEAD) ; <i32> [#uses=1]
- %Z = add i32 %LIVE2, %Y ; <i32> [#uses=1]
- ret i32 %Z
-}
OpenPOWER on IntegriCloud