mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-10 04:24:23 +00:00
![Sanjoy Das](/assets/img/avatar_default.png)
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
|
|
}
|