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
114 lines
2.5 KiB
LLVM
114 lines
2.5 KiB
LLVM
; RUN: opt < %s -O2 -inlinedefault-threshold=100 -S | FileCheck %s
|
|
|
|
; Check that the inlinedefault-threshold does not alter the inline threshold
|
|
; for optsize or minsize functions
|
|
|
|
@a = global i32 4
|
|
|
|
define i32 @inner() {
|
|
call void @extern()
|
|
%a1 = load volatile i32, ptr @a
|
|
%x1 = add i32 %a1, %a1
|
|
ret i32 %x1
|
|
}
|
|
|
|
define i32 @inner2() {
|
|
call void @extern()
|
|
%a1 = load volatile i32, ptr @a
|
|
%x1 = add i32 %a1, %a1
|
|
%a2 = load volatile i32, ptr @a
|
|
%x2 = add i32 %x1, %a2
|
|
%a3 = load volatile i32, ptr @a
|
|
%x3 = add i32 %x2, %a3
|
|
%a4 = load volatile i32, ptr @a
|
|
%x4 = add i32 %x3, %a4
|
|
%a5 = load volatile i32, ptr @a
|
|
%x5 = add i32 %x3, %a5
|
|
%a6 = load volatile i32, ptr @a
|
|
%x6 = add i32 %x5, %a6
|
|
%a7 = load volatile i32, ptr @a
|
|
%x7 = add i32 %x6, %a7
|
|
%a8 = load volatile i32, ptr @a
|
|
%x8 = add i32 %x7, %a8
|
|
ret i32 %x8
|
|
}
|
|
|
|
define i32 @inner3() {
|
|
call void @extern()
|
|
%a1 = load volatile i32, ptr @a
|
|
%x1 = add i32 %a1, %a1
|
|
%a2 = load volatile i32, ptr @a
|
|
%x2 = add i32 %x1, %a2
|
|
%a3 = load volatile i32, ptr @a
|
|
%x3 = add i32 %x2, %a3
|
|
%a4 = load volatile i32, ptr @a
|
|
%x4 = add i32 %x3, %a4
|
|
%a5 = load volatile i32, ptr @a
|
|
%x5 = add i32 %x4, %a5
|
|
%a6 = load volatile i32, ptr @a
|
|
%x6 = add i32 %x5, %a6
|
|
%a7 = load volatile i32, ptr @a
|
|
%x7 = add i32 %x6, %a7
|
|
%a8 = load volatile i32, ptr @a
|
|
%x8 = add i32 %x7, %a8
|
|
%a9 = load volatile i32, ptr @a
|
|
%x9 = add i32 %x8, %a9
|
|
%a10 = load volatile i32, ptr @a
|
|
%x10 = add i32 %x9, %a10
|
|
%a11 = load volatile i32, ptr @a
|
|
%x11 = add i32 %x10, %a11
|
|
%a12 = load volatile i32, ptr @a
|
|
%x12 = add i32 %x11, %a12
|
|
%a13 = load volatile i32, ptr @a
|
|
%x13 = add i32 %x12, %a13
|
|
%a14 = load volatile i32, ptr @a
|
|
%x14 = add i32 %x13, %a14
|
|
%a15 = load volatile i32, ptr @a
|
|
%x15 = add i32 %x14, %a15
|
|
ret i32 %x15
|
|
}
|
|
|
|
define i32 @outer() optsize {
|
|
; CHECK-LABEL: @outer
|
|
; CHECK-NOT: call i32 @inner()
|
|
%r = call i32 @inner()
|
|
ret i32 %r
|
|
}
|
|
|
|
define i32 @outer2() optsize {
|
|
; CHECK-LABEL: @outer2
|
|
; CHECK: call i32 @inner2()
|
|
%r = call i32 @inner2()
|
|
ret i32 %r
|
|
}
|
|
|
|
define i32 @outer3() minsize {
|
|
; CHECK-LABEL: @outer3
|
|
; CHECK: call i32 @inner()
|
|
%r = call i32 @inner()
|
|
ret i32 %r
|
|
}
|
|
|
|
define i32 @outer4() {
|
|
; CHECK-LABEL: @outer4
|
|
; CHECK-NOT: call i32 @inner()
|
|
%r = call i32 @inner()
|
|
ret i32 %r
|
|
}
|
|
|
|
define i32 @outer5() {
|
|
; CHECK-LABEL: @outer5
|
|
; CHECK-NOT: call i32 @inner2()
|
|
%r = call i32 @inner2()
|
|
ret i32 %r
|
|
}
|
|
|
|
define i32 @outer6() {
|
|
; CHECK-LABEL: @outer6
|
|
; CHECK: call i32 @inner3()
|
|
%r = call i32 @inner3()
|
|
ret i32 %r
|
|
}
|
|
|
|
declare void @extern()
|