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
61 lines
2.2 KiB
LLVM
61 lines
2.2 KiB
LLVM
; RUN: opt -passes="ipsccp<func-spec>" -force-specialization -funcspec-max-iters=2 -funcspec-max-clones=1 -funcspec-for-literal-constant=true -S < %s | FileCheck %s
|
|
|
|
declare hidden i1 @compare(ptr) align 2
|
|
declare hidden { i8, ptr } @getType(ptr) align 2
|
|
|
|
; CHECK-LABEL: @foo
|
|
; CHECK-LABEL: @foo.specialized.1
|
|
; CHECK-LABEL: @foo.specialized.2
|
|
|
|
define internal void @foo(ptr %TLI, ptr %DL, ptr %Ty, ptr %ValueVTs, ptr %Offsets, i64 %StartingOffset, i1 %arg) {
|
|
entry:
|
|
%VT = alloca i64, align 8
|
|
br i1 false, label %if.then, label %if.end4
|
|
|
|
if.then: ; preds = %entry
|
|
ret void
|
|
|
|
if.end4: ; preds = %entry
|
|
%cmp = call zeroext i1 @compare(ptr undef)
|
|
br i1 %cmp, label %for.body, label %for.cond16
|
|
|
|
for.body: ; preds = %if.end4
|
|
%add13 = add i64 %StartingOffset, undef
|
|
call void @foo(ptr %TLI, ptr %DL, ptr undef, ptr %ValueVTs, ptr %Offsets, i64 %add13, i1 %arg)
|
|
unreachable
|
|
|
|
for.cond16: ; preds = %for.cond34, %if.end4
|
|
%call27 = call { i8, ptr } @getType(ptr %VT)
|
|
br label %for.cond34
|
|
|
|
for.cond34: ; preds = %for.body37, %for.cond16
|
|
br i1 %arg, label %for.body37, label %for.cond16
|
|
|
|
for.body37: ; preds = %for.cond34
|
|
%tobool39 = icmp ne ptr %Offsets, null
|
|
br label %for.cond34
|
|
}
|
|
|
|
define hidden { ptr, i32 } @bar(ptr %this, i1 %arg) {
|
|
entry:
|
|
%Offsets = alloca i64, align 8
|
|
%cmp26 = call zeroext i1 @compare(ptr undef)
|
|
br i1 %cmp26, label %for.body28, label %for.cond.cleanup27
|
|
|
|
for.cond.cleanup27: ; preds = %entry
|
|
ret { ptr, i32 } undef
|
|
|
|
for.body28: ; preds = %entry
|
|
%call33 = call zeroext i1 @compare(ptr undef)
|
|
br i1 %call33, label %if.then34, label %if.end106
|
|
|
|
if.then34: ; preds = %for.body28
|
|
call void @foo(ptr %this, ptr undef, ptr undef, ptr undef, ptr null, i64 0, i1 %arg)
|
|
unreachable
|
|
|
|
if.end106: ; preds = %for.body28
|
|
call void @foo(ptr %this, ptr undef, ptr undef, ptr undef, ptr %Offsets, i64 0, i1 %arg)
|
|
unreachable
|
|
}
|
|
|