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