diff options
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/X86/machine-cp-debug.mir | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/machine-cp-debug.mir b/llvm/test/CodeGen/X86/machine-cp-debug.mir new file mode 100644 index 00000000000..a7fcd9801e7 --- /dev/null +++ b/llvm/test/CodeGen/X86/machine-cp-debug.mir @@ -0,0 +1,23 @@ +# RUN: llc -mtriple=x86_64-unknown-linux-gnu -run-pass=machine-cp %s -o - | FileCheck %s + +# Machine copy propagation can remove dead copies. Make sure that the +# DBG_VALUE does not keep the copy alive. +# +# CHECK-NOT: $ebx = COPY $eax + +--- | + define void @fred() { + ret void + } + !1 = !DIExpression() +... + +--- +name: fred +tracksRegLiveness: true +body: | + bb.0: + liveins: $eax + $ebx = COPY $eax + DBG_VALUE debug-use $ebx, debug-use _, !1, !1 +... |

