]> granicus.if.org Git - llvm/commit
DebugInfo: Track spilled variables in LiveDebugValues
authorWolfgang Pieb <Wolfgang.Pieb@sony.com>
Tue, 7 Feb 2017 21:23:15 +0000 (21:23 +0000)
committerWolfgang Pieb <Wolfgang.Pieb@sony.com>
Tue, 7 Feb 2017 21:23:15 +0000 (21:23 +0000)
commit0956efb8567fe1ff766090a544df6b51ebff4792
tree292b6c58943408d428e0fb2e16f4e2e9ec49da4a
parentb1b66d4aca91b3ad8757dfbf50aa5389aef1c482
DebugInfo: Track spilled variables in LiveDebugValues

When variables are spilled to the stack by the register allocator, keep track of their
debug locations in LiveDebugValues and insert DBG_VALUE instructions at the appropriate
place. Ensure that the locations are propagated down the dominator tree via the existing
mechanisms.

Reviewer: aprantl

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

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