mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 13:46:13 +00:00
1a9ed3005a
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267499 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
282 B
LLVM
11 lines
282 B
LLVM
; RUN: opt < %s -globalopt -S | FileCheck %s
|
|
; RUN: opt < %s -passes=globalopt -S | FileCheck %s
|
|
|
|
; CHECK-NOT: global
|
|
@X = internal global i32 4 ; <i32*> [#uses=1]
|
|
|
|
define i32 @foo() {
|
|
%V = load i32, i32* @X ; <i32> [#uses=1]
|
|
ret i32 %V
|
|
}
|