mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 23:18:51 +00:00
8c0cdd184d
This change permanently clamps -spp-no-statepoints to true (the code deletion will come later). Tests that specifically tested PlaceSafepoint's ability to wrap calls in gc.statepoint have been moved to RS4GC's test suite. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259096 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
420 B
LLVM
22 lines
420 B
LLVM
; RUN: opt -S -place-safepoints < %s | FileCheck %s
|
|
|
|
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 undef() "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
|
|
}
|