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
62 lines
1.7 KiB
LLVM
62 lines
1.7 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6
|
|
; RUN: opt -passes=gvn -S -o - %s | FileCheck %s
|
|
|
|
; If a branch has two identical successors, we cannot declare either dead.
|
|
define void @widget(i1 %p) {
|
|
; CHECK-LABEL: define void @widget(
|
|
; CHECK-SAME: i1 [[P:%.*]]) {
|
|
; CHECK-NEXT: [[ENTRY:.*]]:
|
|
; CHECK-NEXT: br label %[[BB2:.*]]
|
|
; CHECK: [[BB2]]:
|
|
; CHECK-NEXT: [[T1:%.*]] = phi i64 [ 0, %[[ENTRY]] ], [ [[T2:%.*]], %[[BB7:.*]] ]
|
|
; CHECK-NEXT: [[T2]] = add i64 [[T1]], 1
|
|
; CHECK-NEXT: [[T3:%.*]] = icmp ult i64 0, [[T2]]
|
|
; CHECK-NEXT: br i1 [[T3]], label %[[BB3:.*]], label %[[BB4:.*]]
|
|
; CHECK: [[BB3]]:
|
|
; CHECK-NEXT: [[T4:%.*]] = call i64 @f()
|
|
; CHECK-NEXT: br label %[[BB4]]
|
|
; CHECK: [[BB4]]:
|
|
; CHECK-NEXT: [[FOO:%.*]] = phi i64 [ [[T4]], %[[BB3]] ], [ 0, %[[BB2]] ]
|
|
; CHECK-NEXT: br i1 [[P]], label %[[BB5:.*]], label %[[BB6:.*]]
|
|
; CHECK: [[BB5]]:
|
|
; CHECK-NEXT: br i1 true, label %[[BB7]], label %[[BB7]]
|
|
; CHECK: [[BB6]]:
|
|
; CHECK-NEXT: br i1 true, label %[[BB7]], label %[[BB7]]
|
|
; CHECK: [[BB7]]:
|
|
; CHECK-NEXT: br i1 [[P]], label %[[BB2]], label %[[BB8:.*]]
|
|
; CHECK: [[BB8]]:
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
entry:
|
|
br label %bb2
|
|
|
|
bb2:
|
|
%t1 = phi i64 [ 0, %entry ], [ %t5, %bb7 ]
|
|
%t2 = add i64 %t1, 1
|
|
%t3 = icmp ult i64 0, %t2
|
|
br i1 %t3, label %bb3, label %bb4
|
|
|
|
bb3:
|
|
%t4 = call i64 @f()
|
|
br label %bb4
|
|
|
|
bb4:
|
|
%foo = phi i64 [ %t4, %bb3 ], [ 0, %bb2 ]
|
|
br i1 %p, label %bb5, label %bb6
|
|
|
|
bb5:
|
|
br i1 true, label %bb7, label %bb7
|
|
|
|
bb6:
|
|
br i1 true, label %bb7, label %bb7
|
|
|
|
bb7:
|
|
%t5 = add i64 %t1, 1
|
|
br i1 %p, label %bb2, label %bb8
|
|
|
|
bb8:
|
|
ret void
|
|
}
|
|
|
|
declare i64 @f()
|