23 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 52# RUN: llc %s -o - -mtriple=riscv64 -mattr=+v -run-pass=riscv-vmv0-elimination -verify-machineinstrs | FileCheck %s3 4# If we peek through a COPY to vmv0, we may leave it dead. Make sure we delete5# it so the register allocator doesn't try to allocate it, which can lead to a6# regalloc error.7# https://github.com/llvm/llvm-project/pull/126850#issuecomment-26851663888 9---10name: dead_copy11body: |12 bb.0:13 liveins: $v814 ; CHECK-LABEL: name: dead_copy15 ; CHECK: liveins: $v816 ; CHECK-NEXT: {{ $}}17 ; CHECK-NEXT: %x:vr = COPY $v818 ; CHECK-NEXT: $v0 = COPY %x19 ; CHECK-NEXT: PseudoVSE8_V_M1_MASK $noreg, $noreg, $v0, -1, 3 /* e8 */20 %x:vr = COPY $v821 %y:vmv0 = COPY %x:vr22 PseudoVSE8_V_M1_MASK $noreg, $noreg, %y:vmv0, -1, 323