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
66 lines
1.8 KiB
LLVM
66 lines
1.8 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt < %s -passes=gvn -verify-analysis-invalidation -S | FileCheck --check-prefixes=CHECK,MDEP %s
|
|
; RUN: opt < %s -passes='gvn<memoryssa>' -verify-analysis-invalidation -S | FileCheck --check-prefixes=CHECK,MSSA %s
|
|
|
|
declare void @llvm.assume(i1)
|
|
declare void @use(i1)
|
|
|
|
define void @assume_true() {
|
|
; CHECK-LABEL: @assume_true(
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
call void @llvm.assume(i1 true)
|
|
ret void
|
|
}
|
|
|
|
define void @assume_false() {
|
|
; CHECK-LABEL: @assume_false(
|
|
; CHECK-NEXT: store i8 poison, ptr null, align 1
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
call void @llvm.assume(i1 false)
|
|
ret void
|
|
}
|
|
|
|
define void @assume_arg(i1 %x) {
|
|
; CHECK-LABEL: @assume_arg(
|
|
; CHECK-NEXT: call void @llvm.assume(i1 [[X:%.*]])
|
|
; CHECK-NEXT: call void @use(i1 true)
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
call void @llvm.assume(i1 %x)
|
|
call void @use(i1 %x)
|
|
ret void
|
|
}
|
|
|
|
define void @assume_not_arg(i1 %x) {
|
|
; CHECK-LABEL: @assume_not_arg(
|
|
; CHECK-NEXT: [[XOR:%.*]] = xor i1 [[X:%.*]], true
|
|
; CHECK-NEXT: call void @llvm.assume(i1 [[XOR]])
|
|
; CHECK-NEXT: call void @use(i1 false)
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
%xor = xor i1 %x, true
|
|
call void @llvm.assume(i1 %xor)
|
|
call void @use(i1 %x)
|
|
ret void
|
|
}
|
|
|
|
define void @pr47496(i8 %x) {
|
|
; CHECK-LABEL: @pr47496(
|
|
; CHECK-NEXT: [[CMP:%.*]] = icmp slt i8 [[X:%.*]], 0
|
|
; CHECK-NEXT: [[XOR:%.*]] = xor i1 [[CMP]], true
|
|
; CHECK-NEXT: call void @llvm.assume(i1 [[XOR]])
|
|
; CHECK-NEXT: call void @use(i1 false)
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
%cmp = icmp slt i8 %x, 0
|
|
%xor = xor i1 %cmp, true
|
|
call void @llvm.assume(i1 %xor)
|
|
call void @use(i1 %cmp)
|
|
ret void
|
|
}
|
|
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
|
|
; MDEP: {{.*}}
|
|
; MSSA: {{.*}}
|