view llvm/test/CodeGen/AMDGPU/insert-skips-ignored-insts.mir @ 223:5f17cb93ff66 llvm-original

LLVM13 (2021/7/18)
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:43:00 +0900
parents 79ff65ed7e25
children 1f2b6ac9f198
line wrap: on
line source

# RUN: llc -mtriple=amdgcn-amd-amdhsa -run-pass si-pre-emit-peephole -amdgpu-skip-threshold=3 %s -o - | FileCheck %s

---

# FIXME: RemoveShortExecBranches should not count dbg_value instructions.
# CHECK-LABEL: name: no_count_dbg_value
# CHECK: $vgpr1 = V_MOV_B32_e32 7, implicit $exec
# CHECK-NOT: S_CBRANCH_EXECZ
name: no_count_dbg_value
body: |
  bb.0:
    successors: %bb.1, %bb.2

    $vgpr1 = V_MOV_B32_e32 7, implicit $exec
    S_CBRANCH_EXECZ %bb.2, implicit $exec

  bb.1:
    successors: %bb.2
    $vgpr0 = V_MOV_B32_e32 0, implicit $exec
    DBG_VALUE

  bb.2:
    $vgpr0 = V_MOV_B32_e32 1, implicit $exec

  bb.3:
    S_ENDPGM 0
...