CodeGen peephole: fold redundant phys reg copies
[oota-llvm.git] / test / CodeGen / X86 / GC / cg-O0.ll
1 ; RUN: llc < %s -O0
2 ; REQUIRES: default_triple
3
4 define i32 @main() {
5 entry:
6   call void @f()
7   ret i32 0
8 }
9
10 define void @f() gc "ocaml" {
11 entry:
12   %ptr.stackref = alloca i8*
13   %gcroot = bitcast i8** %ptr.stackref to i8**
14   call void @llvm.gcroot(i8** %gcroot, i8* null)
15   ret void
16 }
17
18 declare void @llvm.gcroot(i8**, i8*) nounwind