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
53 lines
1.7 KiB
LLVM
53 lines
1.7 KiB
LLVM
; RUN: opt -S -passes=sroa %s | FileCheck %s
|
|
; With fake use intrinsics generated for small aggregates, check that when
|
|
; SROA slices the aggregate, we generate individual fake use intrinsics for
|
|
; the individual values.
|
|
|
|
; Generated from the following source:
|
|
; struct s {
|
|
; int i;
|
|
; int j;
|
|
; };
|
|
;
|
|
; void foo(struct s S) {
|
|
; }
|
|
;
|
|
; void bar() {
|
|
; int arr[2] = {5, 6};
|
|
; }
|
|
;
|
|
%struct.s = type { i32, i32 }
|
|
@__const.bar.arr = private unnamed_addr constant [2 x i32] [i32 5, i32 6], align 4
|
|
|
|
; A small struct passed as parameter
|
|
; CHECK-LABEL: define{{.*}}foo
|
|
; CHECK: %[[SLICE1:[^ ]+]] = trunc i64
|
|
; CHECK: %[[SLICE2:[^ ]+]] = trunc i64
|
|
; CHECK-DAG: call{{.*}} @llvm.fake.use(i32 %[[SLICE1]])
|
|
; CHECK-DAG: call{{.*}} @llvm.fake.use(i32 %[[SLICE2]])
|
|
define dso_local void @foo(i64 %S.coerce) optdebug {
|
|
entry:
|
|
%S = alloca %struct.s, align 4
|
|
store i64 %S.coerce, ptr %S, align 4
|
|
%fake.use = load %struct.s, ptr %S, align 4
|
|
notail call void (...) @llvm.fake.use(%struct.s %fake.use)
|
|
ret void
|
|
}
|
|
|
|
; A local variable with a small array type.
|
|
; CHECK-LABEL: define{{.*}}bar
|
|
; CHECK: %[[ARRAYSLICE1:[^ ]+]] = load
|
|
; CHECK: %[[ARRAYSLICE2:[^ ]+]] = load
|
|
; CHECK-DAG: call{{.*}} @llvm.fake.use(i32 %[[ARRAYSLICE1]])
|
|
; CHECK-DAG: call{{.*}} @llvm.fake.use(i32 %[[ARRAYSLICE2]])
|
|
define dso_local void @bar() optdebug {
|
|
entry:
|
|
%arr = alloca [2 x i32], align 4
|
|
call void @llvm.memcpy.p0i8.p0i8.i64(ptr align 4 %arr, ptr align 4 bitcast (ptr @__const.bar.arr to ptr), i64 8, i1 false)
|
|
%fake.use = load [2 x i32], ptr %arr, align 4
|
|
notail call void (...) @llvm.fake.use([2 x i32] %fake.use)
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.memcpy.p0i8.p0i8.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg)
|