SuccessChanges

Summary

  1. [DebugInfo] MachineSink: Insert undef DBG_VALUEs when sinking (details)
Commit ee50590e1684c197bc4336984795e48bf53c7a4e by jeremy.morse
[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
The file was modifiedllvm/test/DebugInfo/MIR/X86/postra-subreg-sink.mir
The file was addedllvm/test/DebugInfo/MIR/X86/sink-leaves-undef.mir
The file was modifiedllvm/lib/CodeGen/MachineSink.cpp