Files
TheRock/compiler/amd-llvm/llvm/test/Other/time-passes.ll
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

93 lines
3.7 KiB
LLVM

; RUN: opt < %s -disable-output -passes='default<O2>' -time-passes 2>&1 | FileCheck %s --check-prefix=TIME
;
; For new pass manager, check that -time-passes-per-run emit one report for each pass run.
; RUN: opt < %s -disable-output -passes='coro-cleanup,function(instcombine,instcombine,loop-mssa(licm))' -time-passes-per-run 2>&1 | FileCheck %s --check-prefix=TIME --check-prefix=TIME-PER-RUN --check-prefix=TIME-PER-RUN-CORO
; RUN: opt < %s -disable-output -passes='instcombine,loop-mssa(licm),instcombine,loop-mssa(licm)' -time-passes-per-run 2>&1 | FileCheck %s --check-prefix=TIME --check-prefix=TIME-PER-RUN -check-prefix=TIME-DOUBLE-LICM
;
; For new pass manager, check that -time-passes emit one report for each pass.
; RUN: opt < %s -disable-output -passes='coro-cleanup,function(instcombine,instcombine,loop-mssa(licm))' -time-passes 2>&1 | FileCheck %s --check-prefixes=TIME,TIME-PER-PASS,TIME-PER-PASS-CORO
; RUN: opt < %s -disable-output -passes='instcombine,loop-mssa(licm),instcombine,loop-mssa(licm)' -time-passes 2>&1 | FileCheck %s --check-prefixes=TIME,TIME-PER-PASS
;
; The following 2 test runs verify -info-output-file interaction (default goes to stderr, '-' goes to stdout).
; RUN: opt < %s -disable-output -passes='default<O2>' -time-passes -info-output-file='-' 2>/dev/null | FileCheck %s --check-prefix=TIME
;
; RUN: rm -f %t; opt < %s -disable-output -passes='default<O2>' -time-passes -info-output-file=%t
; RUN: cat %t | FileCheck %s --check-prefix=TIME
;
; TIME: Analysis execution timing report
; TIME: Total Execution Time:
; TIME: Name
; TIME-PER-RUN-DAG: ScalarEvolutionAnalysis
; TIME-PER-RUN-DAG: LoopAnalysis
; TIME-PER-RUN-DAG: DominatorTreeAnalysis
; TIME-PER-RUN-DAG: TargetLibraryAnalysis
; TIME-PER-PASS-DAG: ScalarEvolutionAnalysis
; TIME-PER-PASS-DAG: LoopAnalysis
; TIME-PER-PASS-DAG: DominatorTreeAnalysis
; TIME-PER-PASS-DAG: TargetLibraryAnalysis
; TIME-PER-PASS-NOT: ScalarEvolutionAnalysis #
; TIME-PER-PASS-NOT: LoopAnalysis #
; TIME-PER-PASS-NOT: DominatorTreeAnalysis #
; TIME-PER-PASS-NOT: TargetLibraryAnalysis #
; TIME: Total{{$}}
; TIME: Pass execution timing report
; TIME: Total Execution Time:
; TIME: Name
; TIME-PER-RUN-DAG: InstCombinePass #1
; TIME-PER-RUN-DAG: InstCombinePass #2
; TIME-PER-RUN-DAG: InstCombinePass #3
; TIME-PER-RUN-DAG: InstCombinePass #4
; TIME-PER-RUN-DAG: LICMPass #1
; TIME-PER-RUN-DAG: LICMPass #2
; TIME-PER-RUN-DAG: LICMPass #3
; TIME-DOUBLE-LICM-DAG: LICMPass #4
; TIME-DOUBLE-LICM-DAG: LICMPass #5
; TIME-DOUBLE-LICM-DAG: LICMPass #6
; TIME-PER-RUN-DAG: LCSSAPass
; TIME-PER-RUN-DAG: LoopSimplifyPass
; TIME-PER-RUN-DAG: VerifierPass
; TIME-PER-RUN-CORO-DAG: SimplifyCFGPass #1
; TIME-PER-RUN-CORO-DAG: CoroCleanupPass #1
; TIME-PER-PASS-DAG: InstCombinePass
; TIME-PER-PASS-DAG: LICMPass
; TIME-PER-PASS-DAG: LCSSAPass
; TIME-PER-PASS-DAG: LoopSimplifyPass
; TIME-PER-PASS-DAG: VerifierPass
; TIME-PER-PASS-CORO-DAG: SimplifyCFGPass
; TIME-PER-PASS-CORO-DAG: CoroCleanupPass
; TIME-PER-PASS-NOT: InstCombinePass #
; TIME-PER-PASS-NOT: LICMPass #
; TIME-PER-PASS-NOT: LCSSAPass #
; TIME-PER-PASS-NOT: LoopSimplifyPass #
; TIME-PER-PASS-NOT: VerifierPass #
; TIME: Total{{$}}
define i32 @foo() {
%res = add i32 5, 4
br label %loop1
loop1:
br i1 false, label %loop1, label %end
end:
ret i32 %res
}
define void @bar_with_loops() {
br label %loop1
loop1:
br i1 false, label %loop1, label %loop2
loop2:
br i1 true, label %loop2, label %end
end:
ret void
}
define void @baz_coro() presplitcoroutine {
%id = call token @llvm.coro.id(i32 0, ptr null, ptr null, ptr null)
%unused = call ptr @llvm.coro.begin(token %id, ptr null)
ret void
}
declare ptr @llvm.coro.begin(token, ptr)