mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
08fbde827c
The debug-use flag must be set exactly for uses on DBG_VALUEs. This is so obvious that it can be trivially inferred while parsing. This will reduce noise when printing while omitting an information that has little value to the user. The parser will keep recognizing the flag for compatibility with old `.mir` files. Differential Revision: https://reviews.llvm.org/D53903 llvm-svn: 345671
24 lines
438 B
YAML
24 lines
438 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 $ebx, _, !1, !1
|
|
...
|