[PATCH] D38229: [DebugInfo] Insert DEBUG_VALUEs after each register redefinition

Karl-Johan Karlsson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 25 05:05:13 PDT 2017


Ka-Ka created this revision.

When reinserting debug values after register allocation, make sure to
insert debug values after each redefinition of debug value register in
the slot index range. The reason for this is that DwarfDebug will end
the range of a debug variable when the physical reg is defined. For
instructions with e.g. tied operands this result in prematurely ended
debug range.

This resolves pr34545

Patch by Karl-Johan Karlsson and Bjorn Pettersson


https://reviews.llvm.org/D38229

Files:
  lib/CodeGen/LiveDebugVariables.cpp
  test/DebugInfo/X86/pr34545.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38229.116504.patch
Type: text/x-patch
Size: 8571 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170925/d4576d60/attachment.bin>


More information about the llvm-commits mailing list