1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 08:23:21 +01:00
llvm-mirror/test/Transforms/GlobalDCE/2002-09-12-Redeletion.ll

12 lines
438 B
LLVM
Raw Normal View History

; RUN: opt < %s -globaldce
2002-09-20 16:37:46 +02:00
;; Should die when function %foo is killed
@foo.upgrd.1 = internal global i32 7 ; <i32*> [#uses=3]
@bar = internal global [2 x { i32*, i32 }] [ { i32*, i32 } { i32* @foo.upgrd.1, i32 7 }, { i32*, i32 } { i32* @foo.upgrd.1, i32 1 } ] ; <[2 x { i32*, i32 }]*> [#uses=0]
2002-09-20 16:37:46 +02:00
define internal i32 @foo() {
%ret = load i32* @foo.upgrd.1 ; <i32> [#uses=1]
ret i32 %ret
2002-09-20 16:37:46 +02:00
}