diff options
author | Jeremy Morse <jeremy.morse@sony.com> | 2019-10-28 12:11:03 +0000 |
---|---|---|
committer | Jeremy Morse <jeremy.morse@sony.com> | 2019-10-28 12:17:56 +0000 |
commit | ee50590e1684c197bc4336984795e48bf53c7a4e (patch) | |
tree | abd438a1ad6f45e02becdc12347259498dd5c6f5 /llvm/lib/CodeGen/CodeGen.cpp | |
parent | b8042dbe2bbf129cb524fca7a48737e99d1e46bc (diff) | |
download | llvm-ee50590e1684c197bc4336984795e48bf53c7a4e.zip llvm-ee50590e1684c197bc4336984795e48bf53c7a4e.tar.gz llvm-ee50590e1684c197bc4336984795e48bf53c7a4e.tar.bz2 |
[DebugInfo] MachineSink: Insert undef DBG_VALUEs when sinking instructions
When we sink DBG_VALUEs between blocks, we simply move the DBG_VALUE
instruction to below the sunk instruction. However, we should also mark
the variable as being undef at the original location, to terminate any
earlier variable location. This patch does that -- plus, if the
instruction being sunk is a copy, it attempts to propagate the copy
through the DBG_VALUE, replacing the destination with the source.
Differential Revision: https://reviews.llvm.org/D58238
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions