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
101 lines
3.7 KiB
LLVM
101 lines
3.7 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt < %s -passes=simplifycfg -sink-common-insts -S | FileCheck %s
|
|
|
|
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128-ni:1-p2:32:8:8:32-ni:2"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
define void @test_01(i1 %cond) gc "statepoint-example" personality ptr @zot {
|
|
; CHECK-LABEL: @test_01(
|
|
; CHECK-NEXT: bb:
|
|
; CHECK-NEXT: br i1 [[COND:%.*]], label [[BB3:%.*]], label [[BB8:%.*]]
|
|
; CHECK: bb3:
|
|
; CHECK-NEXT: [[TMP4:%.*]] = call ptr @wibble()
|
|
; CHECK-NEXT: [[TMP6:%.*]] = invoke align 8 dereferenceable_or_null(8) ptr addrspace(1) [[TMP4]](ptr addrspace(1) undef) [ "deopt"(i32 0) ]
|
|
; CHECK-NEXT: to label [[BB7:%.*]] unwind label [[BB13:%.*]]
|
|
; CHECK: bb7:
|
|
; CHECK-NEXT: unreachable
|
|
; CHECK: bb8:
|
|
; CHECK-NEXT: [[TMP9:%.*]] = call ptr @wibble()
|
|
; CHECK-NEXT: [[TMP11:%.*]] = invoke align 8 dereferenceable_or_null(8) ptr addrspace(1) [[TMP9]](ptr addrspace(1) undef) [ "deopt"(i32 1) ]
|
|
; CHECK-NEXT: to label [[BB12:%.*]] unwind label [[BB13]]
|
|
; CHECK: bb12:
|
|
; CHECK-NEXT: unreachable
|
|
; CHECK: bb13:
|
|
; CHECK-NEXT: [[TMP14:%.*]] = landingpad { ptr, i32 }
|
|
; CHECK-NEXT: cleanup
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
bb:
|
|
br i1 %cond, label %bb3, label %bb8
|
|
|
|
bb1: ; preds = %bb13
|
|
ret void
|
|
|
|
bb3: ; preds = %bb
|
|
%tmp4 = call ptr @wibble()
|
|
%tmp6 = invoke align 8 dereferenceable_or_null(8) ptr addrspace(1) %tmp4(ptr addrspace(1) undef) [ "deopt"(i32 0) ]
|
|
to label %bb7 unwind label %bb13
|
|
|
|
bb7: ; preds = %bb3
|
|
unreachable
|
|
|
|
bb8: ; preds = %bb
|
|
%tmp9 = call ptr @wibble()
|
|
%tmp11 = invoke align 8 dereferenceable_or_null(8) ptr addrspace(1) %tmp9(ptr addrspace(1) undef) [ "deopt"(i32 1) ]
|
|
to label %bb12 unwind label %bb13
|
|
|
|
bb12: ; preds = %bb8
|
|
unreachable
|
|
|
|
bb13: ; preds = %bb8, %bb3
|
|
%tmp14 = landingpad { ptr, i32 }
|
|
cleanup
|
|
br label %bb1
|
|
}
|
|
|
|
define void @test_02(i1 %cond) gc "statepoint-example" personality ptr @zot {
|
|
; CHECK-LABEL: @test_02(
|
|
; CHECK-NEXT: bb:
|
|
; CHECK-NEXT: [[TMP4:%.*]] = call ptr @wibble()
|
|
; CHECK-NEXT: [[TMP0:%.*]] = invoke align 8 dereferenceable_or_null(8) ptr addrspace(1) [[TMP4]](ptr addrspace(1) undef) [ "deopt"(i32 0) ]
|
|
; CHECK-NEXT: to label [[BB8_CONT:%.*]] unwind label [[BB13:%.*]]
|
|
; CHECK: bb8.cont:
|
|
; CHECK-NEXT: unreachable
|
|
; CHECK: bb13:
|
|
; CHECK-NEXT: [[TMP14:%.*]] = landingpad { ptr, i32 }
|
|
; CHECK-NEXT: cleanup
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
bb:
|
|
br i1 %cond, label %bb3, label %bb8
|
|
|
|
bb1: ; preds = %bb13
|
|
ret void
|
|
|
|
bb3: ; preds = %bb
|
|
%tmp4 = call ptr @wibble()
|
|
%tmp6 = invoke align 8 dereferenceable_or_null(8) ptr addrspace(1) %tmp4(ptr addrspace(1) undef) [ "deopt"(i32 0) ]
|
|
to label %bb7 unwind label %bb13
|
|
|
|
bb7: ; preds = %bb3
|
|
unreachable
|
|
|
|
bb8: ; preds = %bb
|
|
%tmp9 = call ptr @wibble()
|
|
%tmp11 = invoke align 8 dereferenceable_or_null(8) ptr addrspace(1) %tmp9(ptr addrspace(1) undef) [ "deopt"(i32 0) ]
|
|
to label %bb12 unwind label %bb13
|
|
|
|
bb12: ; preds = %bb8
|
|
unreachable
|
|
|
|
bb13: ; preds = %bb8, %bb3
|
|
%tmp14 = landingpad { ptr, i32 }
|
|
cleanup
|
|
br label %bb1
|
|
}
|
|
|
|
|
|
declare ptr @zot()
|
|
|
|
declare ptr @wibble()
|