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
70 lines
1.4 KiB
LLVM
70 lines
1.4 KiB
LLVM
; RUN: opt < %s -passes=tailcallelim -verify-dom-info -S | FileCheck %s
|
|
|
|
define i32 @f_1(i32 %x) {
|
|
; CHECK-LABEL: @f_1(
|
|
wentry:
|
|
%cond = icmp ugt i32 %x, 0
|
|
br i1 %cond, label %return, label %body
|
|
|
|
body:
|
|
; CHECK: body:
|
|
; CHECK: call i32 @f_1(i32 %y) [ "deopt"() ]
|
|
%y = add i32 %x, 1
|
|
%tmp = call i32 @f_1(i32 %y) [ "deopt"() ]
|
|
ret i32 0
|
|
|
|
return:
|
|
ret i32 1
|
|
}
|
|
|
|
define i32 @f_2(i32 %x) {
|
|
; CHECK-LABEL: @f_2
|
|
|
|
entry:
|
|
%cond = icmp ugt i32 %x, 0
|
|
br i1 %cond, label %return, label %body
|
|
|
|
body:
|
|
; CHECK: body:
|
|
; CHECK: call i32 @f_2(i32 %y) [ "unknown"() ]
|
|
%y = add i32 %x, 1
|
|
%tmp = call i32 @f_2(i32 %y) [ "unknown"() ]
|
|
ret i32 0
|
|
|
|
return:
|
|
ret i32 1
|
|
}
|
|
|
|
declare void @func()
|
|
|
|
define void @f_3(i1 %B) personality i8 42 {
|
|
; CHECK-LABEL: @f_3(
|
|
entry:
|
|
invoke void @func()
|
|
to label %exit unwind label %merge
|
|
merge:
|
|
%cs1 = catchswitch within none [label %catch] unwind to caller
|
|
|
|
catch:
|
|
; CHECK: catch:
|
|
; CHECK: call void @f_3(i1 %B) [ "funclet"(token %cp) ]
|
|
%cp = catchpad within %cs1 []
|
|
call void @f_3(i1 %B) [ "funclet"(token %cp) ]
|
|
ret void
|
|
|
|
exit:
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: @test_clang_arc_attachedcall(
|
|
; CHECK: tail call ptr @getObj(
|
|
|
|
declare ptr @getObj()
|
|
|
|
define ptr @test_clang_arc_attachedcall() {
|
|
%r = call ptr @getObj() [ "clang.arc.attachedcall"(ptr @llvm.objc.retainAutoreleasedReturnValue) ]
|
|
ret ptr %r
|
|
}
|
|
|
|
declare ptr @llvm.objc.retainAutoreleasedReturnValue(ptr)
|