Files
archived-llvm/test/CodeGen/X86/machine-cp-debug.mir
Krzysztof Parzyszek 873b4b66d3 [CodeGen] Ignore debug uses in MachineCopyPropagation
Debug uses should not count as real uses, since the presence of debug
information could affect the generated code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336803 91177308-0d34-0410-b5e6-96231b3b80d8
2018-07-11 13:30:27 +00:00

24 lines
458 B
YAML

# 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
...