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
85 lines
3.0 KiB
LLVM
85 lines
3.0 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
|
|
; Eliminates store to %R in the entry block.
|
|
; RUN: opt < %s -passes=dse -debug-counter=dse-memoryssa=0 -S | FileCheck --check-prefix=SKIP0-COUNT1 %s
|
|
|
|
; Eliminates store to %P in the entry block.
|
|
; RUN: opt < %s -passes=dse -debug-counter=dse-memoryssa=1 -S | FileCheck --check-prefix=SKIP1-COUNT1 %s
|
|
|
|
; Eliminates both stores in the entry block.
|
|
; RUN: opt < %s -passes=dse -debug-counter=dse-memoryssa=0-1 -S | FileCheck --check-prefix=SKIP0-COUNT2 %s
|
|
|
|
; Eliminates no stores.
|
|
; RUN: opt < %s -passes=dse -debug-counter=dse-memoryssa=2 -S | FileCheck --check-prefix=SKIP2-COUNT1 %s
|
|
|
|
|
|
target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
|
|
|
|
|
|
define void @test(ptr noalias %P, ptr noalias %Q, ptr noalias %R) {
|
|
; SKIP0-COUNT1-LABEL: @test(
|
|
; SKIP0-COUNT1-NEXT: store i32 1, ptr [[P:%.*]]
|
|
; SKIP0-COUNT1-NEXT: br i1 true, label [[BB1:%.*]], label [[BB2:%.*]]
|
|
; SKIP0-COUNT1: bb1:
|
|
; SKIP0-COUNT1-NEXT: br label [[BB3:%.*]]
|
|
; SKIP0-COUNT1: bb2:
|
|
; SKIP0-COUNT1-NEXT: br label [[BB3]]
|
|
; SKIP0-COUNT1: bb3:
|
|
; SKIP0-COUNT1-NEXT: store i32 0, ptr [[Q:%.*]]
|
|
; SKIP0-COUNT1-NEXT: store i32 0, ptr [[R:%.*]]
|
|
; SKIP0-COUNT1-NEXT: store i32 0, ptr [[P]]
|
|
; SKIP0-COUNT1-NEXT: ret void
|
|
;
|
|
; SKIP1-COUNT1-LABEL: @test(
|
|
; SKIP1-COUNT1-NEXT: store i32 1, ptr [[R:%.*]]
|
|
; SKIP1-COUNT1-NEXT: br i1 true, label [[BB1:%.*]], label [[BB2:%.*]]
|
|
; SKIP1-COUNT1: bb1:
|
|
; SKIP1-COUNT1-NEXT: br label [[BB3:%.*]]
|
|
; SKIP1-COUNT1: bb2:
|
|
; SKIP1-COUNT1-NEXT: br label [[BB3]]
|
|
; SKIP1-COUNT1: bb3:
|
|
; SKIP1-COUNT1-NEXT: store i32 0, ptr [[Q:%.*]]
|
|
; SKIP1-COUNT1-NEXT: store i32 0, ptr [[R]]
|
|
; SKIP1-COUNT1-NEXT: store i32 0, ptr [[P:%.*]]
|
|
; SKIP1-COUNT1-NEXT: ret void
|
|
;
|
|
; SKIP0-COUNT2-LABEL: @test(
|
|
; SKIP0-COUNT2-NEXT: br i1 true, label [[BB1:%.*]], label [[BB2:%.*]]
|
|
; SKIP0-COUNT2: bb1:
|
|
; SKIP0-COUNT2-NEXT: br label [[BB3:%.*]]
|
|
; SKIP0-COUNT2: bb2:
|
|
; SKIP0-COUNT2-NEXT: br label [[BB3]]
|
|
; SKIP0-COUNT2: bb3:
|
|
; SKIP0-COUNT2-NEXT: store i32 0, ptr [[Q:%.*]]
|
|
; SKIP0-COUNT2-NEXT: store i32 0, ptr [[R:%.*]]
|
|
; SKIP0-COUNT2-NEXT: store i32 0, ptr [[P:%.*]]
|
|
; SKIP0-COUNT2-NEXT: ret void
|
|
;
|
|
; SKIP2-COUNT1-LABEL: @test(
|
|
; SKIP2-COUNT1-NEXT: store i32 1, ptr [[P:%.*]]
|
|
; SKIP2-COUNT1-NEXT: store i32 1, ptr [[R:%.*]]
|
|
; SKIP2-COUNT1-NEXT: br i1 true, label [[BB1:%.*]], label [[BB2:%.*]]
|
|
; SKIP2-COUNT1: bb1:
|
|
; SKIP2-COUNT1-NEXT: br label [[BB3:%.*]]
|
|
; SKIP2-COUNT1: bb2:
|
|
; SKIP2-COUNT1-NEXT: br label [[BB3]]
|
|
; SKIP2-COUNT1: bb3:
|
|
; SKIP2-COUNT1-NEXT: store i32 0, ptr [[Q:%.*]]
|
|
; SKIP2-COUNT1-NEXT: store i32 0, ptr [[R]]
|
|
; SKIP2-COUNT1-NEXT: store i32 0, ptr [[P]]
|
|
; SKIP2-COUNT1-NEXT: ret void
|
|
;
|
|
store i32 1, ptr %P
|
|
store i32 1, ptr %R
|
|
br i1 true, label %bb1, label %bb2
|
|
bb1:
|
|
br label %bb3
|
|
bb2:
|
|
br label %bb3
|
|
bb3:
|
|
store i32 0, ptr %Q
|
|
store i32 0, ptr %R
|
|
store i32 0, ptr %P
|
|
ret void
|
|
}
|