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
67 lines
2.1 KiB
LLVM
67 lines
2.1 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 6
|
|
; RUN: opt < %s -disable-output "-passes=print<da>" 2>&1 | FileCheck %s
|
|
|
|
; if (cond) {
|
|
; for (i = 0; i < 10; i++) {
|
|
; for (j = 0; j < 100; j++) {
|
|
; arg[j] = 0.0;
|
|
; }
|
|
; }
|
|
; } else {
|
|
; for (i = 0; i < 10; i++) {
|
|
; for (j = 0; j < 100; j++) {
|
|
; double x = arg[j];
|
|
; }
|
|
; }
|
|
; }
|
|
;
|
|
define void @fun(ptr %arg, i1 %cond) {
|
|
; CHECK-LABEL: 'fun'
|
|
; CHECK-NEXT: Src: store double 0.000000e+00, ptr %gep.0, align 8 --> Dst: store double 0.000000e+00, ptr %gep.0, align 8
|
|
; CHECK-NEXT: da analyze - output [* *]!
|
|
; CHECK-NEXT: Src: store double 0.000000e+00, ptr %gep.0, align 8 --> Dst: %i16 = load double, ptr %gep.1, align 8
|
|
; CHECK-NEXT: da analyze - flow [|<]!
|
|
; CHECK-NEXT: Src: %i16 = load double, ptr %gep.1, align 8 --> Dst: %i16 = load double, ptr %gep.1, align 8
|
|
; CHECK-NEXT: da analyze - input [* *]!
|
|
;
|
|
entry:
|
|
br i1 %cond, label %outer.0.header, label %outer.1.header
|
|
|
|
outer.0.header:
|
|
%i.0 = phi i64 [ %i.0.inc, %outer.0.latch ], [ 0, %entry ]
|
|
br label %inner.0
|
|
|
|
inner.0:
|
|
%j.0 = phi i64 [ %i.0, %outer.0.header ], [ %j.0.inc, %inner.0 ]
|
|
%j.0.inc = add i64 %j.0, 1
|
|
%gep.0 = getelementptr inbounds double, ptr %arg, i64 %j.0.inc
|
|
store double 0.000000e+00, ptr %gep.0
|
|
%ec.inner.0 = icmp eq i64 %j.0, 100
|
|
br i1 %ec.inner.0, label %outer.0.latch, label %inner.0
|
|
|
|
outer.0.latch:
|
|
%i.0.inc = add i64 %i.0, 1
|
|
%ec.outer.0 = icmp eq i64 %i.0.inc, 10
|
|
br i1 %ec.outer.0, label %exit, label %outer.0.header
|
|
|
|
outer.1.header:
|
|
%i.1 = phi i64 [ %i.1.inc, %outer.1.latch ], [ 0, %entry ]
|
|
br label %inner.1
|
|
|
|
inner.1:
|
|
%j.1 = phi i64 [ %i.1, %outer.1.header ], [ %j.1.inc, %inner.1 ]
|
|
%j.1.inc = add i64 %j.1, 1
|
|
%gep.1 = getelementptr inbounds double, ptr %arg, i64 %j.1.inc
|
|
%i16 = load double, ptr %gep.1
|
|
%ec.inner.1 = icmp eq i64 %j.1, 100
|
|
br i1 %ec.inner.1, label %outer.1.latch, label %inner.1
|
|
|
|
outer.1.latch:
|
|
%i.1.inc = add i64 %i.1, 1
|
|
%iec.outer.1 = icmp eq i64 %i.1.inc, 10
|
|
br i1 %iec.outer.1, label %exit, label %outer.1.header
|
|
|
|
exit:
|
|
ret void
|
|
}
|