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
94 lines
2.7 KiB
LLVM
94 lines
2.7 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals all --version 5
|
|
; RUN: opt %s -passes=adce -S | FileCheck %s
|
|
|
|
define i32 @foo(i32 %a) #0 {
|
|
; CHECK-LABEL: define i32 @foo(
|
|
; CHECK-SAME: i32 [[A:%.*]]) #[[ATTR0:[0-9]+]] {
|
|
; CHECK-NEXT: [[ENTRY:.*:]]
|
|
; CHECK-NEXT: ret i32 [[A]]
|
|
;
|
|
entry:
|
|
%tk = call token @llvm.experimental.convergence.entry()
|
|
ret i32 %a
|
|
}
|
|
|
|
define void @bar() #0 {
|
|
; CHECK-LABEL: define void @bar(
|
|
; CHECK-SAME: ) #[[ATTR0]] {
|
|
; CHECK-NEXT: [[ENTRY:.*:]]
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
entry:
|
|
%tk = call token @llvm.experimental.convergence.anchor()
|
|
ret void
|
|
}
|
|
|
|
define void @baz() #0 {
|
|
; CHECK-LABEL: define void @baz(
|
|
; CHECK-SAME: ) #[[ATTR0]] {
|
|
; CHECK-NEXT: [[ENTRY:.*:]]
|
|
; CHECK-NEXT: br label %[[HEADER:.*]]
|
|
; CHECK: [[HEADER]]:
|
|
; CHECK-NEXT: br i1 true, label %[[BODY:.*]], label %[[EXIT:.*]]
|
|
; CHECK: [[BODY]]:
|
|
; CHECK-NEXT: br label %[[HEADER]]
|
|
; CHECK: [[EXIT]]:
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
entry:
|
|
%tk0 = call token @llvm.experimental.convergence.entry()
|
|
br label %header
|
|
|
|
header:
|
|
%tk1 = call token @llvm.experimental.convergence.loop() [ "convergencectrl"(token %tk0) ]
|
|
br i1 true, label %body, label %exit
|
|
|
|
body:
|
|
br label %header
|
|
|
|
exit:
|
|
ret void
|
|
}
|
|
|
|
define void @indirect_inner() #0 {
|
|
; CHECK-LABEL: define void @indirect_inner(
|
|
; CHECK-SAME: ) #[[ATTR0]] {
|
|
; CHECK-NEXT: [[ENTRY:.*:]]
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
entry:
|
|
%tk0 = call token @llvm.experimental.convergence.entry()
|
|
ret void
|
|
}
|
|
|
|
define void @indirect() #0 {
|
|
; CHECK-LABEL: define void @indirect(
|
|
; CHECK-SAME: ) #[[ATTR0]] {
|
|
; CHECK-NEXT: [[ENTRY:.*:]]
|
|
; CHECK-NEXT: [[TK0:%.*]] = call token @llvm.experimental.convergence.entry()
|
|
; CHECK-NEXT: [[VAR:%.*]] = alloca ptr, align 8
|
|
; CHECK-NEXT: store ptr @indirect_inner, ptr [[VAR]], align 8
|
|
; CHECK-NEXT: [[PTR:%.*]] = load ptr, ptr [[VAR]], align 8
|
|
; CHECK-NEXT: call void [[PTR]]() #[[ATTR0]] [ "convergencectrl"(token [[TK0]]) ]
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
entry:
|
|
%tk0 = call token @llvm.experimental.convergence.entry()
|
|
%var = alloca ptr, align 8
|
|
store ptr @indirect_inner, ptr %var, align 8
|
|
%ptr = load ptr, ptr %var, align 8
|
|
call void %ptr() convergent [ "convergencectrl"(token %tk0) ]
|
|
ret void
|
|
}
|
|
|
|
declare token @llvm.experimental.convergence.entry() #1
|
|
declare token @llvm.experimental.convergence.anchor() #1
|
|
declare token @llvm.experimental.convergence.loop() #1
|
|
|
|
attributes #0 = { convergent }
|
|
attributes #1 = { convergent nocallback nofree nosync nounwind willreturn memory(none) }
|
|
;.
|
|
; CHECK: attributes #[[ATTR0]] = { convergent }
|
|
; CHECK: attributes #[[ATTR1:[0-9]+]] = { convergent nocallback nofree nosync nounwind willreturn memory(none) }
|
|
;.
|