xref: /llvm-project/llvm/test/CodeGen/X86/machine-cp-debug.mir (revision 4855534d10cea3dd93d33da13ceb3381b0c588e6)
1# RUN: llc -mtriple=x86_64-unknown-linux-gnu -run-pass=machine-cp %s -o - | FileCheck %s
2
3# Machine copy propagation can remove dead copies. Make sure that the
4# DBG_VALUE does not keep the copy alive.
5#
6# CHECK-NOT: $ebx = COPY $eax
7
8--- |
9  define void @fred() {
10    ret void
11  }
12...
13
14---
15name: fred
16tracksRegLiveness: true
17body: |
18  bb.0:
19    liveins: $eax
20    $ebx = COPY $eax
21    DBG_VALUE $ebx, _
22...
23