With this patch, the LowerGC transformation becomes the
[oota-llvm.git] / test / CodeGen / Generic / GC / redundant_init.ll
1 ; RUN: llvm-as < %s | llc -march=x86 | \
2 ; RUN:   ignore grep {movl..0} | count 0
3
4 %struct.obj = type { i8*, %struct.obj* }
5
6 declare void @g() gc "shadow-stack"
7
8 define void @f(i8* %o) gc "shadow-stack" {
9 entry:
10         %root = alloca i8*
11         call void @llvm.gcroot(i8** %root, i8* null)
12         store i8* %o, i8** %root
13         call void @g()
14         ret void
15 }
16
17 declare void @llvm.gcroot(i8**, i8*)