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
70 lines
3.3 KiB
LLVM
70 lines
3.3 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
|
|
|
|
%struct.sk_buff = type opaque
|
|
|
|
@l2tp_recv_dequeue_session = external dso_local local_unnamed_addr global i32, align 4
|
|
@l2tp_recv_dequeue_skb = external dso_local local_unnamed_addr global ptr, align 8
|
|
@l2tp_recv_dequeue_session_2 = external dso_local local_unnamed_addr global i32, align 4
|
|
@l2tp_recv_dequeue_session_0 = external dso_local local_unnamed_addr global i32, align 4
|
|
|
|
declare void @llvm.assume(i1 noundef)
|
|
|
|
define dso_local void @l2tp_recv_dequeue() local_unnamed_addr {
|
|
; CHECK-LABEL: define dso_local void @l2tp_recv_dequeue() local_unnamed_addr {
|
|
; CHECK-NEXT: [[ENTRY:.*]]:
|
|
; CHECK-NEXT: [[TMP0:%.*]] = load i32, ptr @l2tp_recv_dequeue_session, align 4
|
|
; CHECK-NEXT: [[CONV:%.*]] = sext i32 [[TMP0]] to i64
|
|
; CHECK-NEXT: [[TMP1:%.*]] = inttoptr i64 [[CONV]] to ptr
|
|
; CHECK-NEXT: [[TMP2:%.*]] = load i32, ptr @l2tp_recv_dequeue_session_2, align 4
|
|
; CHECK-NEXT: [[TOBOOL_NOT:%.*]] = icmp eq i32 [[TMP2]], 0
|
|
; CHECK-NEXT: br label %[[FOR_COND:.*]]
|
|
; CHECK: [[FOR_COND]]:
|
|
; CHECK-NEXT: [[STOREMERGE:%.*]] = phi ptr [ [[TMP1]], %[[ENTRY]] ], [ null, %[[IF_END:.*]] ]
|
|
; CHECK-NEXT: store ptr [[STOREMERGE]], ptr @l2tp_recv_dequeue_skb, align 8
|
|
; CHECK-NEXT: br i1 [[TOBOOL_NOT]], label %[[IF_END]], label %[[IF_THEN:.*]]
|
|
; CHECK: [[IF_THEN]]:
|
|
; CHECK-NEXT: [[TMP3:%.*]] = load i32, ptr [[STOREMERGE]], align 4
|
|
; CHECK-NEXT: store i32 [[TMP3]], ptr @l2tp_recv_dequeue_session_0, align 4
|
|
; CHECK-NEXT: callbr void asm sideeffect "", "!i,~{dirflag},~{fpsr},~{flags}"()
|
|
; CHECK-NEXT: to label %[[ASM_FALLTHROUGH_I:.*]] [label %if.end]
|
|
; CHECK: [[ASM_FALLTHROUGH_I]]:
|
|
; CHECK-NEXT: br label %[[IF_END]]
|
|
; CHECK: [[IF_END]]:
|
|
; CHECK-NEXT: [[TMP4:%.*]] = load i32, ptr [[STOREMERGE]], align 4
|
|
; CHECK-NEXT: [[TOBOOL2_NOT:%.*]] = icmp eq i32 [[TMP4]], 0
|
|
; CHECK-NEXT: tail call void @llvm.assume(i1 [[TOBOOL2_NOT]])
|
|
; CHECK-NEXT: br label %[[FOR_COND]]
|
|
;
|
|
entry:
|
|
%0 = load i32, ptr @l2tp_recv_dequeue_session, align 4
|
|
%conv = sext i32 %0 to i64
|
|
%1 = inttoptr i64 %conv to ptr
|
|
%2 = load i32, ptr @l2tp_recv_dequeue_session_2, align 4
|
|
%tobool.not = icmp eq i32 %2, 0
|
|
br label %for.cond
|
|
|
|
for.cond: ; preds = %if.end, %entry
|
|
%storemerge = phi ptr [ %1, %entry ], [ null, %if.end ]
|
|
store ptr %storemerge, ptr @l2tp_recv_dequeue_skb, align 8
|
|
br i1 %tobool.not, label %if.end, label %if.then
|
|
|
|
if.then: ; preds = %for.cond
|
|
%3 = load i32, ptr %storemerge, align 4
|
|
store i32 %3, ptr @l2tp_recv_dequeue_session_0, align 4
|
|
; Splitting the critical edge from if.then to if.end will fail, but should not
|
|
; cause an infinite loop in GVN. If we can one day split edges of callbr
|
|
; indirect targets, great!
|
|
callbr void asm sideeffect "", "!i,~{dirflag},~{fpsr},~{flags}"()
|
|
to label %asm.fallthrough.i [label %if.end]
|
|
|
|
asm.fallthrough.i: ; preds = %if.then
|
|
br label %if.end
|
|
|
|
if.end: ; preds = %asm.fallthrough.i, %if.then, %for.cond
|
|
%4 = load i32, ptr %storemerge, align 4
|
|
%tobool2.not = icmp eq i32 %4, 0
|
|
tail call void @llvm.assume(i1 %tobool2.not)
|
|
br label %for.cond
|
|
}
|