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
42 lines
1.3 KiB
LLVM
42 lines
1.3 KiB
LLVM
; RUN: opt < %s -passes=globalopt -S | FileCheck %s
|
|
|
|
; When removing the store to @global in @foo, the pass would incorrectly return
|
|
; false. This was caught by the pass return status check that is hidden under
|
|
; EXPENSIVE_CHECKS.
|
|
|
|
; CHECK: @global = internal unnamed_addr global ptr null, align 1
|
|
|
|
; CHECK-LABEL: @foo
|
|
; CHECK-NEXT: entry:
|
|
; CHECK-NEXT: ret i16 undef
|
|
|
|
@global = internal unnamed_addr global ptr null, align 1
|
|
|
|
; Function Attrs: nofree noinline norecurse nounwind writeonly
|
|
define i16 @foo(i16 %c) local_unnamed_addr #0 {
|
|
entry:
|
|
%local1.addr = alloca i16, align 1
|
|
store ptr %local1.addr, ptr @global, align 1
|
|
ret i16 undef
|
|
}
|
|
|
|
; Function Attrs: noinline nounwind writeonly
|
|
define i16 @bar() local_unnamed_addr #1 {
|
|
entry:
|
|
%local2 = alloca [1 x i16], align 1
|
|
call void @llvm.lifetime.start.p0(ptr nonnull %local2)
|
|
store ptr %local2, ptr @global, align 1
|
|
call void @llvm.lifetime.end.p0(ptr nonnull %local2)
|
|
ret i16 undef
|
|
}
|
|
|
|
; Function Attrs: argmemonly nounwind willreturn
|
|
declare void @llvm.lifetime.start.p0(ptr nocapture) #2
|
|
|
|
; Function Attrs: argmemonly nounwind willreturn
|
|
declare void @llvm.lifetime.end.p0(ptr nocapture) #2
|
|
|
|
attributes #0 = { nofree noinline norecurse nounwind writeonly }
|
|
attributes #1 = { noinline nounwind writeonly }
|
|
attributes #2 = { argmemonly nounwind willreturn }
|