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
78 lines
2.5 KiB
LLVM
78 lines
2.5 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt -passes=newgvn -S %s | FileCheck %s
|
|
; Ensure that loads that bypass memory def-use chains get added as users of the new
|
|
; MemoryDef. Otherwise this test will not pass memory verification because the value
|
|
; of the load will not be reprocessed until verification.
|
|
; ModuleID = 'bugpoint-reduced-simplified.bc'
|
|
source_filename = "bugpoint-output-f242c4f.bc"
|
|
target triple = "x86_64-apple-darwin16.7.0"
|
|
|
|
@global = external global i32 #0
|
|
@global.1 = external global i32 #0
|
|
|
|
define void @hoge(i32 %arg, i1 %arg2) {
|
|
; CHECK-LABEL: @hoge(
|
|
; CHECK-NEXT: bb:
|
|
; CHECK-NEXT: br label [[BB2:%.*]]
|
|
; CHECK: bb1:
|
|
; CHECK-NEXT: br label [[BB2]]
|
|
; CHECK: bb2:
|
|
; CHECK-NEXT: [[TMP:%.*]] = phi i32 [ 0, [[BB1:%.*]] ], [ [[ARG:%.*]], [[BB:%.*]] ]
|
|
; CHECK-NEXT: br label [[BB6:%.*]]
|
|
; CHECK: bb3:
|
|
; CHECK-NEXT: [[TMP4:%.*]] = load i32, ptr @global, align 4, !h [[META0:![0-9]+]]
|
|
; CHECK-NEXT: unreachable
|
|
; CHECK: bb6:
|
|
; CHECK-NEXT: store i32 [[TMP]], ptr @global.1, align 4, !h [[META0]]
|
|
; CHECK-NEXT: br i1 %arg2, label [[BB7:%.*]], label [[BB1]]
|
|
; CHECK: bb7:
|
|
; CHECK-NEXT: br i1 %arg2, label [[BB10:%.*]], label [[BB8:%.*]]
|
|
; CHECK: bb8:
|
|
; CHECK-NEXT: br i1 false, label [[BB9:%.*]], label [[BB3:%.*]]
|
|
; CHECK: bb9:
|
|
; CHECK-NEXT: store i8 poison, ptr null, align 1
|
|
; CHECK-NEXT: br label [[BB3]]
|
|
; CHECK: bb10:
|
|
; CHECK-NEXT: store i32 0, ptr @global, align 4, !h [[META0]]
|
|
; CHECK-NEXT: br label [[BB7]]
|
|
;
|
|
bb:
|
|
br label %bb2
|
|
|
|
bb1: ; preds = %bb6
|
|
br label %bb2
|
|
|
|
bb2: ; preds = %bb1, %bb
|
|
%tmp = phi i32 [ 0, %bb1 ], [ %arg, %bb ]
|
|
br label %bb6
|
|
|
|
bb3: ; preds = %bb9, %bb8
|
|
%tmp4 = load i32, ptr @global, !h !0
|
|
%tmp5 = icmp eq i32 %tmp4, 0
|
|
unreachable
|
|
|
|
bb6: ; preds = %bb2
|
|
store i32 %tmp, ptr @global.1, !h !0
|
|
br i1 %arg2, label %bb7, label %bb1
|
|
|
|
bb7: ; preds = %bb10, %bb6
|
|
br i1 %arg2, label %bb10, label %bb8
|
|
|
|
bb8: ; preds = %bb7
|
|
br i1 false, label %bb9, label %bb3
|
|
|
|
bb9: ; preds = %bb8
|
|
call void @widget()
|
|
br label %bb3
|
|
|
|
bb10: ; preds = %bb7
|
|
store i32 0, ptr @global, !h !0
|
|
br label %bb7
|
|
}
|
|
|
|
declare void @widget()
|
|
|
|
attributes #0 = { align=4 }
|
|
|
|
!0 = !{}
|