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
Reland [OffloadBundler] Compress bundles over 4GB (#122307)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
GlobalOpt
/
iterate.ll
blob
be6ebe82bb08121e49a5f72758cc5be1a726ce64
1
; RUN: opt < %s -passes=globalopt -S | FileCheck %s
2
; CHECK-NOT: %G
3
4
@G = internal global i32 0 ; <ptr> [#uses=1]
5
@H = internal global { ptr } { ptr @G } ; <ptr> [#uses=1]
6
7
define i32 @loadg() {
8
%G = load ptr, ptr @H ; <ptr> [#uses=1]
9
%GV = load i32, ptr %G ; <i32> [#uses=1]
10
ret i32 %GV
11
}