diff options
author | Jeremy Morse <jeremy.morse.llvm@gmail.com> | 2018-11-02 16:52:48 +0000 |
---|---|---|
committer | Jeremy Morse <jeremy.morse.llvm@gmail.com> | 2018-11-02 16:52:48 +0000 |
commit | d538352b3e4b1eabee02fc7ce491728678cc4716 (patch) | |
tree | 8e610ac20334332a92701d38b3e09c6708d6a0dd /lldb/unittests/ScriptInterpreter/Python | |
parent | 82536501c75c60c5a2a0bda9e255a51ce7741018 (diff) | |
download | llvm-d538352b3e4b1eabee02fc7ce491728678cc4716.zip llvm-d538352b3e4b1eabee02fc7ce491728678cc4716.tar.gz llvm-d538352b3e4b1eabee02fc7ce491728678cc4716.tar.bz2 |
[MachineSink][DebugInfo] Correctly sink DBG_VALUEs
As reported in PR38952, postra-machine-sink relies on DBG_VALUE insns being
adjacent to the def of the register that they reference. This is not always
true, leading to register copies being sunk but not the associated DBG_VALUEs,
which gives the debugger a bad variable location.
This patch collects DBG_VALUEs as we walk through a BB looking for copies to
sink, then passes them down to performSink. Compile-time impact should be
negligable.
Differential Revision: https://reviews.llvm.org/D53992
llvm-svn: 345996
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions