[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / llvm / test / Transforms / PlaceSafepoints / no-statepoints.ll
bloba9220ce9ce63227b1f15d21dd3e9278ddebfd55a
1 ; RUN: opt -S -place-safepoints < %s -enable-new-pm=0 | FileCheck %s
3 declare void @callee()
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
12 other:
13 ; CHECK: other:
14   call void @callee() "gc-leaf-function"
15 ; CHECK: call void @do_safepoint()
16   br label %other
19 declare void @do_safepoint()
20 define void @gc.safepoint_poll() {
21   call void @do_safepoint()
22   ret void