CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
62 lines
1.9 KiB
LLVM
62 lines
1.9 KiB
LLVM
; RUN: opt -passes=rewrite-statepoints-for-gc -S < %s | FileCheck %s
|
|
|
|
; Test to make sure we destroy LCSSA's single entry phi nodes before
|
|
; running liveness
|
|
|
|
declare void @consume(...) "gc-leaf-function"
|
|
|
|
define void @test6(ptr addrspace(1) %obj) gc "statepoint-example" {
|
|
; CHECK-LABEL: @test6
|
|
entry:
|
|
br label %next
|
|
|
|
next: ; preds = %entry
|
|
; CHECK-LABEL: next:
|
|
; CHECK-NEXT: gc.statepoint
|
|
; CHECK-NEXT: gc.relocate
|
|
; CHECK-NEXT: @consume(ptr addrspace(1) %obj.relocated)
|
|
; CHECK-NEXT: @consume(ptr addrspace(1) %obj.relocated)
|
|
; Need to delete unreachable gc.statepoint call
|
|
%obj2 = phi ptr addrspace(1) [ %obj, %entry ]
|
|
call void @foo() [ "deopt"() ]
|
|
call void (...) @consume(ptr addrspace(1) %obj2)
|
|
call void (...) @consume(ptr addrspace(1) %obj)
|
|
ret void
|
|
}
|
|
|
|
define void @test7() gc "statepoint-example" {
|
|
; CHECK-LABEL: test7
|
|
; CHECK-NOT: gc.statepoint
|
|
; Need to delete unreachable gc.statepoint invoke - tested separately given
|
|
; a correct implementation could only remove the instructions, not the block
|
|
ret void
|
|
|
|
unreached: ; preds = %unreached
|
|
%obj = phi ptr addrspace(1) [ null, %unreached ]
|
|
call void @foo() [ "deopt"() ]
|
|
call void (...) @consume(ptr addrspace(1) %obj)
|
|
br label %unreached
|
|
}
|
|
|
|
define void @test8() gc "statepoint-example" personality ptr undef {
|
|
; CHECK-LABEL: test8
|
|
; CHECK-NOT: gc.statepoint
|
|
; Bound the last check-not
|
|
ret void
|
|
|
|
unreached: ; No predecessors!
|
|
invoke void @foo() [ "deopt"() ]
|
|
; CHECK-LABEL: @foo
|
|
to label %normal_return unwind label %exceptional_return
|
|
|
|
normal_return: ; preds = %unreached
|
|
ret void
|
|
|
|
exceptional_return: ; preds = %unreached
|
|
%landing_pad4 = landingpad { ptr, i32 }
|
|
cleanup
|
|
ret void
|
|
}
|
|
|
|
declare void @foo()
|