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
56 lines
1.4 KiB
LLVM
56 lines
1.4 KiB
LLVM
; RUN: opt < %s -debug-pass-manager -passes='require<domtree>,loop(loop-simplifycfg),gvn,loop(indvars)' 2>&1 -S | FileCheck --check-prefix=NEW-PM --check-prefix=IR %s
|
|
|
|
; Check CFG-only analysis are preserved by SCCP by running it between 2
|
|
; loop-vectorize runs.
|
|
|
|
; CHECK: Dominator Tree Construction
|
|
; CHECK: Natural Loop Information
|
|
; CHECK: Canonicalize natural loops
|
|
; CHECK: LCSSA Verifier
|
|
; CHECK: Loop-Closed SSA Form Pass
|
|
; CHECK: Global Value Numbering
|
|
; CHECK-NOT: Dominator Tree Construction
|
|
; CHECK-NOT: Natural Loop Information
|
|
; CHECK: Canonicalize natural loops
|
|
|
|
; NEW-PM-DAG: Running analysis: LoopAnalysis on test
|
|
; NEW-PM-DAG: Running analysis: DominatorTreeAnalysis on test
|
|
; NEW-PM: Running pass: GVNPass on test
|
|
; NEW-PM-NOT: Running analysis: LoopAnalysis on test
|
|
; NEW-PM-NOT: Running analysis: DominatorTreeAnalysis on test
|
|
|
|
declare i1 @cond()
|
|
declare void @dostuff()
|
|
|
|
define i32 @test() {
|
|
; IR-LABEL: define i32 @test()
|
|
; IR-LABEL: header:
|
|
; IR: br i1 false, label %then, label %latch
|
|
; IR-LABEL: then:
|
|
; IR-NEXT: call void @dostuff()
|
|
; IR-NEXT: br label %latch
|
|
entry:
|
|
%res = add i32 1, 10
|
|
br label %header
|
|
|
|
header:
|
|
%iv = phi i32 [ %res, %entry ], [ 0, %latch ]
|
|
%ic = icmp eq i32 %res, 99
|
|
br i1 %ic, label %then, label %latch
|
|
|
|
then:
|
|
br label %then.2
|
|
|
|
then.2:
|
|
call void @dostuff()
|
|
br label %latch
|
|
|
|
|
|
latch:
|
|
%ec = call i1 @cond()
|
|
br i1 %ec, label %exit, label %header
|
|
|
|
exit:
|
|
ret i32 %iv
|
|
}
|