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
88 lines
2.6 KiB
LLVM
88 lines
2.6 KiB
LLVM
; This test uses the same IR functions of the opt-bisect test
|
|
; but it checks the correctness of the -opt-disable flag.
|
|
|
|
; RUN: opt -disable-output -disable-verify \
|
|
; RUN: -passes=inferattrs -opt-disable=inferattrs %s 2>&1 \
|
|
; RUN: | FileCheck %s --check-prefix=CHECK-MODULE-PASS
|
|
; CHECK-MODULE-PASS: BISECT: NOT running pass (1) inferattrs on [module]
|
|
|
|
; RUN: opt -disable-output -disable-verify \
|
|
; RUN: -passes=sroa -opt-disable=sroa %s 2>&1 \
|
|
; RUN: | FileCheck %s --check-prefix=CHECK-FUNCTION-PASS
|
|
; CHECK-FUNCTION-PASS: BISECT: NOT running pass (1) sroa on f1
|
|
; CHECK-FUNCTION-PASS: BISECT: NOT running pass (2) sroa on f2
|
|
; CHECK-FUNCTION-PASS: BISECT: NOT running pass (3) sroa on f3
|
|
; CHECK-FUNCTION-PASS: BISECT: NOT running pass (4) sroa on f4
|
|
|
|
; RUN: opt -disable-output -disable-verify \
|
|
; RUN: -opt-disable=inferattrs,function-attrs \
|
|
; RUN: -passes='inferattrs,cgscc(function-attrs,function(early-cse))' %s 2>&1 \
|
|
; RUN: | FileCheck %s --check-prefix=CHECK-MULTI-PASS
|
|
; CHECK-MULTI-PASS: BISECT: NOT running pass (1) inferattrs on [module]
|
|
; CHECK-MULTI-PASS: BISECT: NOT running pass (2) function-attrs on (f1)
|
|
; CHECK-MULTI-PASS: BISECT: running pass (3) early-cse on f1
|
|
; CHECK-MULTI-PASS: BISECT: NOT running pass (4) function-attrs on (f2)
|
|
; CHECK-MULTI-PASS: BISECT: running pass (5) early-cse on f2
|
|
; CHECK-MULTI-PASS: BISECT: NOT running pass (6) function-attrs on (f3)
|
|
; CHECK-MULTI-PASS: BISECT: running pass (7) early-cse on f3
|
|
; CHECK-MULTI-PASS: BISECT: NOT running pass (8) function-attrs on (f4)
|
|
; CHECK-MULTI-PASS: BISECT: running pass (9) early-cse on f4
|
|
|
|
declare i32 @g()
|
|
|
|
define void @f1(i1 %arg) {
|
|
entry:
|
|
br label %loop.0
|
|
loop.0:
|
|
br i1 %arg, label %loop.0.0, label %loop.1
|
|
loop.0.0:
|
|
br i1 %arg, label %loop.0.0, label %loop.0.1
|
|
loop.0.1:
|
|
br i1 %arg, label %loop.0.1, label %loop.0
|
|
loop.1:
|
|
br i1 %arg, label %loop.1, label %loop.1.bb1
|
|
loop.1.bb1:
|
|
br i1 %arg, label %loop.1, label %loop.1.bb2
|
|
loop.1.bb2:
|
|
br i1 %arg, label %end, label %loop.1.0
|
|
loop.1.0:
|
|
br i1 %arg, label %loop.1.0, label %loop.1
|
|
end:
|
|
ret void
|
|
}
|
|
|
|
define i32 @f2() {
|
|
entry:
|
|
ret i32 0
|
|
}
|
|
|
|
define i32 @f3() {
|
|
entry:
|
|
%temp = call i32 @g()
|
|
%icmp = icmp ugt i32 %temp, 2
|
|
br i1 %icmp, label %bb.true, label %bb.false
|
|
bb.true:
|
|
%temp2 = call i32 @f2()
|
|
ret i32 %temp2
|
|
bb.false:
|
|
ret i32 0
|
|
}
|
|
|
|
define void @f4(i1 %arg) {
|
|
entry:
|
|
%i = alloca i32, align 4
|
|
call void @llvm.lifetime.start(i64 4, ptr %i)
|
|
br label %for.cond
|
|
|
|
for.cond:
|
|
br i1 %arg, label %for.body, label %for.end
|
|
|
|
for.body:
|
|
br label %for.cond
|
|
|
|
for.end:
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.lifetime.start(i64, ptr nocapture)
|