repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fold assert-only-used variable into the assert.
[llvm/stm8.git]
/
test
/
Transforms
/
GlobalOpt
/
2009-02-15-ResolveAlias.ll
blob
a5be2b17d4ad4c525f5f6193c061474b5af42c4e
1
; RUN: opt < %s -globalopt -S | FileCheck %s
2
3
define internal void @f() {
4
; CHECK-NOT: @f
5
; CHECK: define void @a
6
ret void
7
}
8
9
@a = alias void ()* @f
10
11
define void @g() {
12
call void()* @a()
13
ret void
14
}
15
16
@b = alias internal void ()* @g
17
; CHECK-NOT: @b
18
19
define void @h() {
20
call void()* @b()
21
; CHECK: call void @g
22
ret void
23
}
24