summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/PlaceSafepoints/no-statepoints.ll
blob: ad2442369b8845d5e197801375c334f30d16ea19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
; RUN: opt -S -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
}
OpenPOWER on IntegriCloud