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
60 lines
1.7 KiB
YAML
60 lines
1.7 KiB
YAML
# RUN: llc -mtriple=hexagon -run-pass branch-folder -run-pass if-converter -verify-machineinstrs %s -o - | FileCheck %s
|
|
|
|
# The hoisting of common instructions from successors could cause registers
|
|
# to no longer be live-in in the successor blocks. The liveness was updated
|
|
# to include potential new live-in registres, but not to remove registers
|
|
# that were no longer live-in.
|
|
# This could cause if-converter to generate incorrect code.
|
|
#
|
|
# In this testcase, the "r1 = A2_sxth killed r0" was hoisted, and since r0
|
|
# was killed, it was no longer live-in in either successor. The if-converter
|
|
# then created code, where the first predicated instruction has incorrect
|
|
# implicit use of r0:
|
|
#
|
|
# %bb.0:
|
|
# liveins: %r0
|
|
# %r1 = A2_sxth killed %r0 ; hoisted, kills r0
|
|
# A2_nop implicit-def %P0
|
|
# %r0 = C2_cmoveit %P0, 2, implicit %r0 ; predicated A2_tfrsi
|
|
# %r0 = C2_cmoveif killed %P0, 1, implicit %r0 ; predicated A2_tfrsi
|
|
# %r0 = A2_add killed %r0, killed %r1
|
|
# J2_jumpr %r31, implicit dead %PC
|
|
#
|
|
|
|
# CHECK: $r1 = A2_sxth killed $r0
|
|
# CHECK: $r0 = C2_cmoveit $p0, 2
|
|
# CHECK-NOT: implicit-def $r0
|
|
# CHECK: $r0 = C2_cmoveif killed $p0, 1, implicit killed $r0
|
|
|
|
---
|
|
name: fred
|
|
tracksRegLiveness: true
|
|
|
|
body: |
|
|
bb.0:
|
|
liveins: $r0
|
|
successors: %bb.1, %bb.2
|
|
|
|
A2_nop implicit-def $p0
|
|
J2_jumpt killed $p0, %bb.2, implicit-def dead $pc
|
|
|
|
bb.1:
|
|
successors: %bb.3
|
|
liveins: $r0
|
|
$r1 = A2_sxth killed $r0
|
|
$r0 = A2_tfrsi 1
|
|
J2_jump %bb.3, implicit-def $pc
|
|
|
|
bb.2:
|
|
successors: %bb.3
|
|
liveins: $r0
|
|
$r1 = A2_sxth killed $r0
|
|
$r0 = A2_tfrsi 2
|
|
|
|
bb.3:
|
|
liveins: $r0, $r1
|
|
$r0 = A2_add killed $r0, killed $r1
|
|
J2_jumpr $r31, implicit-def dead $pc
|
|
...
|
|
|