2018-07-11 21:30:27 +08:00
|
|
|
# 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
|
2018-10-31 07:28:27 +08:00
|
|
|
DBG_VALUE $ebx, _, !1, !1
|
2018-07-11 21:30:27 +08:00
|
|
|
...
|