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
Revert "[InstCombine] Support gep nuw in icmp folds" (#118698)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
GlobalOpt
/
2004-10-10-CastStoreOnce.ll
blob
c756adea05f218b7ccd349345f13ae5efb2f179d
1
; RUN: opt < %s -passes=globalopt
2
3
@V = global float 1.200000e+01 ; <ptr> [#uses=1]
4
@G = internal global ptr null ; <ptr> [#uses=2]
5
6
define i32 @user() {
7
%P = load ptr, ptr @G ; <ptr> [#uses=1]
8
%Q = load i32, ptr %P ; <i32> [#uses=1]
9
ret i32 %Q
10
}
11
12
define void @setter() {
13
store ptr @V, ptr @G
14
ret void
15
}
16