blob: 47145bccb443e474331c9abcb817a79d69a82db3 [file] [log] [blame]
; RUN: opt -S -passes=place-safepoints < %s | FileCheck %s
declare void @callee()
define void @test() gc "statepoint-example" {
; CHECK-LABEL: test(
entry:
; CHECK: entry:
; CHECK: call void @do_safepoint()
br label %other
other:
; CHECK: other:
call void @callee() "gc-leaf-function"
; CHECK: call void @do_safepoint()
br label %other
}
declare void @do_safepoint()
define void @gc.safepoint_poll() {
call void @do_safepoint()
ret void
}