diff options
Diffstat (limited to 'llvm/test/Transforms/PlaceSafepoints/no-statepoints.ll')
-rw-r--r-- | llvm/test/Transforms/PlaceSafepoints/no-statepoints.ll | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/llvm/test/Transforms/PlaceSafepoints/no-statepoints.ll b/llvm/test/Transforms/PlaceSafepoints/no-statepoints.ll new file mode 100644 index 00000000000..ad2442369b8 --- /dev/null +++ b/llvm/test/Transforms/PlaceSafepoints/no-statepoints.ll @@ -0,0 +1,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 +} |