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
32 lines
1.3 KiB
LLVM
32 lines
1.3 KiB
LLVM
; RUN: llc -mtriple aarch64 -o /dev/null %s
|
|
|
|
; This used to fail with:
|
|
; Assertion `N1.getOpcode() != ISD::DELETED_NODE &&
|
|
; "Operand is DELETED_NODE!"' failed.
|
|
; Just make sure we do not crash here.
|
|
define void @test_fold_freeze_over_select_cc(i15 %a, ptr %p1, ptr %p2) {
|
|
entry:
|
|
%a2 = add nsw i15 %a, 1
|
|
%sext = sext i15 %a2 to i32
|
|
%ashr = ashr i32 %sext, 31
|
|
%lshr = lshr i32 %ashr, 7
|
|
; Setup an already frozen input to ctlz.
|
|
%freeze = freeze i32 %lshr
|
|
%ctlz = call i32 @llvm.ctlz.i32(i32 %freeze, i1 true)
|
|
store i32 %ctlz, ptr %p1, align 1
|
|
; Here is another ctlz, which is used by a frozen select.
|
|
; DAGCombiner::visitFREEZE will to try to fold the freeze over a SELECT_CC,
|
|
; and when dealing with the condition operand the other SELECT_CC operands
|
|
; will be replaced/simplified as well. So the SELECT_CC is mutated while
|
|
; freezing the "maybe poison operands". This needs to be handled by
|
|
; DAGCombiner::visitFREEZE, as it can't store the list of SDValues that
|
|
; should be frozen in a separate data structure that isn't updated when the
|
|
; SELECT_CC is mutated.
|
|
%ctlz1 = call i32 @llvm.ctlz.i32(i32 %lshr, i1 true)
|
|
%icmp = icmp ne i32 %lshr, 0
|
|
%select = select i1 %icmp, i32 %ctlz1, i32 0
|
|
%freeze1 = freeze i32 %select
|
|
store i32 %freeze1, ptr %p2, align 1
|
|
ret void
|
|
}
|