repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bump version to 19.1.0-rc3
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
GlobalOpt
/
storepointer.ll
blob
9a88ee0a2176395d70948bb023abdd524dd7e6a7
1
; RUN: opt < %s -passes=globalopt -S | FileCheck %s
2
; CHECK-NOT: global
3
4
@G = internal global ptr null ; <ptr> [#uses=2]
5
6
define internal void @Actual() {
7
ret void
8
}
9
10
define void @init() {
11
store ptr @Actual, ptr @G
12
ret void
13
}
14
15
define void @doit() {
16
%FP = load ptr, ptr @G ; <ptr> [#uses=1]
17
call void %FP( )
18
ret void
19
}