From 93d606a9b3ed6b4bfc0440d04c9d554320ad6961 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 18 Jun 2008 22:37:31 +0000 Subject: [PATCH] Remove this test until the corresponding patch is reapplied because it's causing make check to crash for some people. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52473 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/DeadArgElim/multdeadretval.ll | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 test/Transforms/DeadArgElim/multdeadretval.ll diff --git a/test/Transforms/DeadArgElim/multdeadretval.ll b/test/Transforms/DeadArgElim/multdeadretval.ll deleted file mode 100644 index bccd0dfdb32..00000000000 --- a/test/Transforms/DeadArgElim/multdeadretval.ll +++ /dev/null @@ -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 ) ; [#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() ; [#uses=1] - %LIVE = extractvalue {i32, i16} %ret, 0 - %DEAD = extractvalue {i32, i16} %ret, 1 - %Y = add i32 %LIVE, -123 ; [#uses=1] - %LIVE2 = call i32 @test3(i16 %DEAD) ; [#uses=1] - %Z = add i32 %LIVE2, %Y ; [#uses=1] - ret i32 %Z -} -- 2.34.1