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
54 lines
2.0 KiB
LLVM
54 lines
2.0 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
|
|
; RUN: opt < %s -passes=gvn -enable-scalar-pre -S | FileCheck %s --check-prefixes=CHECK,MDEP
|
|
; RUN: opt < %s -passes='gvn<memoryssa>' -enable-scalar-pre -S | FileCheck %s --check-prefixes=CHECK,MSSA
|
|
; RUN: opt < %s -passes="gvn<scalar-pre>" -enable-scalar-pre=false -S | FileCheck %s
|
|
|
|
@H = common global i32 0 ; <ptr> [#uses=2]
|
|
@G = common global i32 0 ; <ptr> [#uses=1]
|
|
|
|
define i32 @test() nounwind {
|
|
; CHECK-LABEL: define i32 @test(
|
|
; CHECK-SAME: ) #[[ATTR0:[0-9]+]] {
|
|
; CHECK-NEXT: [[ENTRY:.*:]]
|
|
; CHECK-NEXT: [[TMP0:%.*]] = load i32, ptr @H, align 4
|
|
; CHECK-NEXT: [[TMP1:%.*]] = call i32 (...) @foo() #[[ATTR0]]
|
|
; CHECK-NEXT: [[TMP2:%.*]] = icmp ne i32 [[TMP1]], 0
|
|
; CHECK-NEXT: br i1 [[TMP2]], label %[[BB:.*]], label %[[ENTRY_BB1_CRIT_EDGE:.*]]
|
|
; CHECK: [[ENTRY_BB1_CRIT_EDGE]]:
|
|
; CHECK-NEXT: [[DOTPRE:%.*]] = add i32 [[TMP0]], 42
|
|
; CHECK-NEXT: br label %[[BB1:.*]]
|
|
; CHECK: [[BB]]:
|
|
; CHECK-NEXT: [[TMP3:%.*]] = add i32 [[TMP0]], 42
|
|
; CHECK-NEXT: store i32 [[TMP3]], ptr @G, align 4
|
|
; CHECK-NEXT: br label %[[BB1]]
|
|
; CHECK: [[BB1]]:
|
|
; CHECK-NEXT: [[DOTPRE_PHI:%.*]] = phi i32 [ [[DOTPRE]], %[[ENTRY_BB1_CRIT_EDGE]] ], [ [[TMP3]], %[[BB]] ]
|
|
; CHECK-NEXT: store i32 [[DOTPRE_PHI]], ptr @H, align 4
|
|
; CHECK-NEXT: ret i32 0
|
|
;
|
|
entry:
|
|
%0 = load i32, ptr @H, align 4 ; <i32> [#uses=2]
|
|
%1 = call i32 (...) @foo() nounwind ; <i32> [#uses=1]
|
|
%2 = icmp ne i32 %1, 0 ; <i1> [#uses=1]
|
|
br i1 %2, label %bb, label %bb1
|
|
|
|
bb: ; preds = %entry
|
|
%3 = add i32 %0, 42 ; <i32> [#uses=1]
|
|
store i32 %3, ptr @G, align 4
|
|
br label %bb1
|
|
|
|
bb1: ; preds = %bb, %entry
|
|
%4 = add i32 %0, 42 ; <i32> [#uses=1]
|
|
store i32 %4, ptr @H, align 4
|
|
br label %return
|
|
|
|
|
|
return: ; preds = %bb1
|
|
ret i32 0
|
|
}
|
|
|
|
declare i32 @foo(...)
|
|
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
|
|
; MDEP: {{.*}}
|
|
; MSSA: {{.*}}
|