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
80 lines
1.8 KiB
YAML
80 lines
1.8 KiB
YAML
# RUN: llc -mtriple=x86_64-- -verify-machineinstrs -run-pass block-placement -o - %s | FileCheck %s
|
|
# Check the conditional jump in bb.1 is changed to unconditional after block placement swaps bb.2 and bb.3.
|
|
|
|
--- |
|
|
@a = external global i16
|
|
@b = external global i32
|
|
|
|
declare void @dummy1()
|
|
declare void @dummy2()
|
|
declare void @dummy3()
|
|
|
|
; Function Attrs: nounwind
|
|
define void @f2(i1 %arg) {
|
|
br i1 %arg, label %bb1, label %bb3
|
|
|
|
bb1:
|
|
call void @dummy1()
|
|
call void @dummy1()
|
|
call void @dummy1()
|
|
br i1 %arg, label %bb2, label %bb2
|
|
|
|
bb2:
|
|
call void @dummy2()
|
|
call void @dummy2()
|
|
call void @dummy2()
|
|
br label %bb4
|
|
|
|
bb3:
|
|
call void @dummy3()
|
|
call void @dummy3()
|
|
call void @dummy3()
|
|
br label %bb2
|
|
|
|
bb4:
|
|
ret void
|
|
}
|
|
|
|
|
|
...
|
|
---
|
|
# CHECK-LABEL: name: f2
|
|
# CHECK: bb.1:
|
|
# CHECK: JMP_1 %bb.2
|
|
# CHECK: bb.3:
|
|
# CHECK: bb.2:
|
|
name: f2
|
|
body: |
|
|
bb.0 (%ir-block.0):
|
|
successors: %bb.1(50), %bb.3(50)
|
|
|
|
JCC_1 %bb.1, 2, implicit $eflags
|
|
JMP_1 %bb.3
|
|
bb.1:
|
|
successors: %bb.2(100)
|
|
|
|
CALL64pcrel32 @dummy1, csr_64, implicit $rsp, implicit-def $rsp
|
|
CALL64pcrel32 @dummy1, csr_64, implicit $rsp, implicit-def $rsp
|
|
CALL64pcrel32 @dummy1, csr_64, implicit $rsp, implicit-def $rsp
|
|
JCC_1 %bb.2, 5, implicit $eflags
|
|
|
|
bb.2:
|
|
successors: %bb.4(100)
|
|
|
|
CALL64pcrel32 @dummy2, csr_64, implicit $rsp, implicit-def $rsp
|
|
CALL64pcrel32 @dummy2, csr_64, implicit $rsp, implicit-def $rsp
|
|
CALL64pcrel32 @dummy2, csr_64, implicit $rsp, implicit-def $rsp
|
|
JMP_1 %bb.4
|
|
|
|
bb.3:
|
|
successors: %bb.2(100)
|
|
CALL64pcrel32 @dummy3, csr_64, implicit $rsp, implicit-def $rsp
|
|
CALL64pcrel32 @dummy3, csr_64, implicit $rsp, implicit-def $rsp
|
|
CALL64pcrel32 @dummy3, csr_64, implicit $rsp, implicit-def $rsp
|
|
JMP_1 %bb.2
|
|
|
|
bb.4:
|
|
RET64
|
|
|
|
...
|