Home | History | Annotate | Download | only in PlaceSafepoints
      1 ; RUN: opt -S -place-safepoints < %s | FileCheck %s
      2 
      3 declare void @callee()
      4 
      5 define void @test() gc "statepoint-example" {
      6 ; CHECK-LABEL: test(
      7 entry:
      8 ; CHECK: entry:
      9 ; CHECK: call void @do_safepoint()
     10   br label %other
     11 
     12 other:
     13 ; CHECK: other:
     14   call void @callee() "gc-leaf-function"
     15 ; CHECK: call void @do_safepoint()
     16   br label %other
     17 }
     18 
     19 declare void @do_safepoint()
     20 define void @gc.safepoint_poll() {
     21   call void @do_safepoint()
     22   ret void
     23 }
     24