aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse@sony.com>2019-10-28 12:11:03 +0000
committerJeremy Morse <jeremy.morse@sony.com>2019-10-28 12:17:56 +0000
commitee50590e1684c197bc4336984795e48bf53c7a4e (patch)
treeabd438a1ad6f45e02becdc12347259498dd5c6f5 /llvm/lib/CodeGen/CodeGen.cpp
parentb8042dbe2bbf129cb524fca7a48737e99d1e46bc (diff)
downloadllvm-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