]> granicus.if.org Git - llvm/commit
[DEBUGINFO] Handle restore instructions in LiveDebugValues
authorWolfgang Pieb <Wolfgang.Pieb@sony.com>
Wed, 30 Jan 2019 18:34:07 +0000 (18:34 +0000)
committerWolfgang Pieb <Wolfgang.Pieb@sony.com>
Wed, 30 Jan 2019 18:34:07 +0000 (18:34 +0000)
commitbc99383d67bd8013a4b6e264cd0d4fd5daa2b7e4
tree137aa29608fc89e2ef232ca6358778c937ee0865
parentf3ae9589caa47c5bcc38b3f8587aa8a7d9cb403c
[DEBUGINFO] Handle restore instructions in LiveDebugValues

The LiveDebugValues pass recognizes spills but not restores, which can
cause large gaps in location information for some variables, depending
on control flow. This patch make LiveDebugValues recognize restores and
generate appropriate DBG_VALUE instructions.

Reviewers: aprantl, NicolaPrica

Differential Revision: https://reviews.llvm.org/D57271

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352642 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineInstr.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/LiveDebugValues.cpp
lib/CodeGen/MachineInstr.cpp
test/DebugInfo/MIR/X86/live-debug-values-restore.mir [new file with mode: 0644]