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
52 lines
2.6 KiB
LLVM
52 lines
2.6 KiB
LLVM
; RUN: opt -passes="loop(indvars,loop-deletion,loop-unroll-full)" -print-pass-numbers -S -o /dev/null %s 2>&1 | FileCheck %s --check-prefix=NUMBER
|
|
; RUN: opt -passes="loop(indvars,loop-deletion,loop-unroll-full)" -print-pass-numbers -filter-print-funcs=baz -S -o /dev/null %s 2>&1 | FileCheck %s --check-prefix=NUMBER-FILTERED
|
|
; RUN: opt -passes="loop(indvars,loop-deletion,loop-unroll-full)" -print-module-scope -print-before-pass-number=3 -S -o /dev/null %s 2>&1 | FileCheck %s --check-prefix=BEFORE
|
|
; RUN: opt -passes="loop(indvars,loop-deletion,loop-unroll-full)" -print-module-scope -print-after-pass-number=2 -S -o /dev/null %s 2>&1 | FileCheck %s --check-prefix=AFTER
|
|
; RUN: opt -passes="loop(indvars,loop-deletion,loop-unroll-full)" -print-module-scope -print-before-pass-number=2,3 -S -o /dev/null %s 2>&1 | FileCheck %s --check-prefix=BEFORE-MULTI
|
|
; RUN: opt -passes="loop(indvars,loop-deletion,loop-unroll-full)" -print-module-scope -print-after-pass-number=2,3 -S -o /dev/null %s 2>&1 | FileCheck %s --check-prefix=AFTER-MULTI
|
|
|
|
define i32 @bar(i32 %arg) {
|
|
; BEFORE: *** IR Dump Before 3-IndVarSimplifyPass on loop %bb1 in function bar ***
|
|
; BEFORE: define i32 @bar(i32 %arg) {
|
|
; AFTER: *** IR Dump After 2-LCSSAPass on bar ***
|
|
; AFTER: define i32 @bar(i32 %arg) {
|
|
; BEFORE-MULTI: *** IR Dump Before 2-LCSSAPass on bar ***
|
|
; BEFORE-MULTI: define i32 @bar(i32 %arg) {
|
|
; BEFORE-MULTI: *** IR Dump Before 3-IndVarSimplifyPass on loop %bb1 in function bar ***
|
|
; BEFORE-MULTI: define i32 @bar(i32 %arg) {
|
|
; AFTER-MULTI: *** IR Dump After 2-LCSSAPass on bar ***
|
|
; AFTER-MULTI: define i32 @bar(i32 %arg) {
|
|
; AFTER-MULTI: *** IR Dump After 3-IndVarSimplifyPass on loop %bb1 in function bar ***
|
|
; AFTER-MULTI: define i32 @bar(i32 %arg) {
|
|
|
|
bb:
|
|
br label %bb1
|
|
|
|
bb1: ; preds = %bb1, %bb
|
|
%phi = phi i32 [ 0, %bb ], [ %add, %bb1 ]
|
|
%phi2 = phi i32 [ 0, %bb ], [ %add3, %bb1 ]
|
|
%add = add i32 %phi, 1
|
|
%add3 = add i32 %phi2, %add
|
|
%icmp = icmp slt i32 %phi, %arg
|
|
br i1 %icmp, label %bb1, label %bb4
|
|
|
|
bb4: ; preds = %bb1
|
|
ret i32 %add3
|
|
}
|
|
|
|
define i32 @baz(i32 %arg) {
|
|
ret i32 0;
|
|
}
|
|
|
|
; NUMBER: Running pass 1 LoopSimplifyPass on bar
|
|
; NUMBER-NEXT: Running pass 2 LCSSAPass on bar
|
|
; NUMBER-NEXT: Running pass 3 IndVarSimplifyPass on loop %bb1 in function bar
|
|
; NUMBER-NEXT: Running pass 4 LoopDeletionPass on loop %bb1 in function bar
|
|
; NUMBER-NEXT: Running pass 5 LoopSimplifyPass on baz
|
|
; NUMBER-NEXT: Running pass 6 LCSSAPass on baz
|
|
; NUMBER-NOT: Running pass
|
|
|
|
; NUMBER-FILTERED: Running pass 1 LoopSimplifyPass on baz
|
|
; NUMBER-FILTERED-NEXT: Running pass 2 LCSSAPass on baz
|
|
|