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