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
72 lines
2.7 KiB
LLVM
72 lines
2.7 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6
|
|
; RUN: opt -passes=gvn -S < %s | FileCheck %s
|
|
|
|
%struct.zot = type { ptr }
|
|
%struct.wombat = type { ptr }
|
|
%struct.baz = type { i8, ptr }
|
|
|
|
@global = hidden unnamed_addr constant ptr @quux
|
|
|
|
declare ptr @f()
|
|
|
|
define hidden void @eggs(ptr %arg, i1 %arg2, ptr %arg3, i32 %arg4, ptr %arg5) unnamed_addr align 2 {
|
|
; CHECK-LABEL: define hidden void @eggs(
|
|
; CHECK-SAME: ptr [[ARG:%.*]], i1 [[ARG2:%.*]], ptr [[ARG3:%.*]], i32 [[ARG4:%.*]], ptr [[ARG5:%.*]]) unnamed_addr align 2 {
|
|
; CHECK-NEXT: [[BB:.*:]]
|
|
; CHECK-NEXT: [[TMP:%.*]] = alloca [[STRUCT_WOMBAT:%.*]], align 8
|
|
; CHECK-NEXT: store ptr @global, ptr [[ARG]], align 8, !invariant.group [[META0:![0-9]+]]
|
|
; CHECK-NEXT: br i1 [[ARG2]], label %[[BB4:.*]], label %[[BB2:.*]]
|
|
; CHECK: [[BB2]]:
|
|
; CHECK-NEXT: [[TMP3:%.*]] = atomicrmw sub ptr [[ARG3]], i32 [[ARG4]] acq_rel, align 4
|
|
; CHECK-NEXT: br label %[[BB4]]
|
|
; CHECK: [[BB4]]:
|
|
; CHECK-NEXT: [[TMP5:%.*]] = load ptr, ptr [[ARG5]], align 8
|
|
; CHECK-NEXT: [[TMP6:%.*]] = getelementptr inbounds [[STRUCT_BAZ:%.*]], ptr [[TMP5]], i64 0, i32 1
|
|
; CHECK-NEXT: br i1 [[ARG2]], label %[[BB9:.*]], label %[[BB7:.*]]
|
|
; CHECK: [[BB7]]:
|
|
; CHECK-NEXT: [[TMP8:%.*]] = tail call ptr @f()
|
|
; CHECK-NEXT: br label %[[BB9]]
|
|
; CHECK: [[BB9]]:
|
|
; CHECK-NEXT: tail call void @quux(ptr [[ARG]], i1 [[ARG2]])
|
|
; CHECK-NEXT: [[TMP17:%.*]] = load ptr, ptr [[TMP]], align 8
|
|
; CHECK-NEXT: [[TMP18:%.*]] = icmp eq ptr [[TMP17]], null
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
bb:
|
|
%tmp = alloca %struct.wombat, align 8
|
|
store ptr @global, ptr %arg, align 8, !invariant.group !0
|
|
br i1 %arg2, label %bb4, label %bb2
|
|
|
|
bb2: ; preds = %bb
|
|
%tmp3 = atomicrmw sub ptr %arg3, i32 %arg4 acq_rel, align 4
|
|
br label %bb4
|
|
|
|
bb4: ; preds = %bb2, %bb
|
|
%tmp5 = load ptr, ptr %arg5, align 8
|
|
%tmp6 = getelementptr inbounds %struct.baz, ptr %tmp5, i64 0, i32 1
|
|
br i1 %arg2, label %bb9, label %bb7
|
|
|
|
bb7: ; preds = %bb4
|
|
%tmp8 = tail call ptr @f()
|
|
br label %bb9
|
|
|
|
bb9: ; preds = %bb7, %bb4
|
|
%tmp10 = load ptr, ptr %arg5, align 8
|
|
%tmp13 = load ptr, ptr %arg, align 8, !invariant.group !0
|
|
%tmp15 = load ptr, ptr %tmp13, align 8
|
|
tail call void %tmp15(ptr %arg, i1 %arg2)
|
|
%tmp17 = load ptr, ptr %tmp, align 8
|
|
%tmp18 = icmp eq ptr %tmp17, null
|
|
ret void
|
|
}
|
|
|
|
; Function Attrs: nounwind willreturn
|
|
declare hidden void @quux(ptr, i1) unnamed_addr #0 align 2
|
|
|
|
attributes #0 = { nounwind willreturn }
|
|
|
|
!0 = !{}
|
|
;.
|
|
; CHECK: [[META0]] = !{}
|
|
;.
|