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.6 KiB
LLVM
42 lines
1.6 KiB
LLVM
; RUN: opt -S -passes=loop-vectorize -force-vector-width=4 -force-vector-interleave=1 -enable-interleaved-mem-accesses=true -runtime-memory-check-threshold=24 --pass-remarks=loop-vectorize < %s | FileCheck %s
|
|
|
|
target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
|
|
|
|
|
|
; This only tests that asking for remarks doesn't lead to compiler crashing
|
|
; (or timing out). We just check for output. To be sure, we also check we didn't
|
|
; vectorize.
|
|
; CHECK-LABEL: @atomicLoadsBothWriteAndReadMem
|
|
; CHECK-NOT: <{{[0-9]+}} x i8>
|
|
|
|
%"struct.std::__atomic_base" = type { i32 }
|
|
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
|
|
%union.anon = type { i64 }
|
|
%MyStruct = type { i32, %"struct.std::atomic", %union.anon }
|
|
|
|
define void @atomicLoadsBothWriteAndReadMem(ptr %a, ptr %b, ptr %lim) {
|
|
entry:
|
|
br label %loop
|
|
|
|
loop:
|
|
%0 = phi ptr [ %a, %entry ], [ %ainc, %loop ]
|
|
%1 = phi ptr [ %b, %entry ], [ %binc, %loop ]
|
|
%2 = load i32, ptr %1, align 8
|
|
store i32 %2, ptr %0, align 8
|
|
%3 = getelementptr inbounds %MyStruct, ptr %1, i64 0, i32 1, i32 0, i32 0
|
|
%4 = load atomic i32, ptr %3 monotonic, align 4
|
|
%5 = getelementptr inbounds %MyStruct, ptr %0, i64 0, i32 1, i32 0, i32 0
|
|
store atomic i32 %4, ptr %5 monotonic, align 4
|
|
%6 = getelementptr inbounds %MyStruct, ptr %1, i64 0, i32 2, i32 0
|
|
%7 = getelementptr inbounds %MyStruct, ptr %0, i64 0, i32 2, i32 0
|
|
%8 = load i64, ptr %6, align 8
|
|
store i64 %8, ptr %7, align 8
|
|
%binc = getelementptr inbounds %MyStruct, ptr %1, i64 1
|
|
%ainc = getelementptr inbounds %MyStruct, ptr %0, i64 1
|
|
%cond = icmp eq ptr %binc, %lim
|
|
br i1 %cond, label %exit, label %loop
|
|
|
|
exit:
|
|
ret void
|
|
}
|