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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
llvm
/
test
/
CodeGen
/
X86
/
GC
/
deadargelim.ll
blob
75908a2df4906a416cef11805ca2781a32e30e30
1
; RUN: opt < %s -passes=deadargelim
2
3
declare void @llvm.gcroot(ptr, ptr)
4
5
define void @g() {
6
entry:
7
call void @f(i32 0)
8
ret void
9
}
10
11
define internal void @f(i32 %unused) gc "example" {
12
entry:
13
%var = alloca ptr
14
call void @llvm.gcroot(ptr %var, ptr null)
15
ret void
16
}