mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
73e2a5da53
Summary: Verify that each DBG_VALUE has a debug location. This is required by LiveDebugValues, and perhaps by other late passes. There's an exception for tests: lots of tests use a two-operand form of DBG_VALUE for convenience. There's no reason to prevent that. This is an extension of D80665, but there's no dependency. Reviewers: aprantl, jmorse, davide, chrisjackson Subscribers: hiraditya, asb, rbar, johnrusso, simoncook, sabuasal, niosHD, jrtc27, MaskRay, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, PkmX, jocewei, Jim, lenary, s.egerton, pzheng, sameer.abuasal, apazos, luismarques, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D80670
23 lines
407 B
YAML
23 lines
407 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
|
|
}
|
|
...
|
|
|
|
---
|
|
name: fred
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $eax
|
|
$ebx = COPY $eax
|
|
DBG_VALUE $ebx, _
|
|
...
|