[PATCH] D43956: [DebugInfo] Discard invalid DBG_VALUE instructions in LiveDebugVariables

Bjorn Pettersson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 3 13:42:46 PST 2018


bjope updated this revision to Diff 136929.
bjope added a comment.

Updated to replace the faulty DBG_VALUE by 'DBG_VALUE %noreg' instead of
discarding it completely (as suggested by Adrian).

Currently this has little impact, as computeIntervals will discard such
DBG_VALUE instructions anyway. But doing it like this will give the wanted
result when https://bugs.llvm.org/show_bug.cgi?id=36579 has been solved.


Repository:
  rL LLVM

https://reviews.llvm.org/D43956

Files:
  lib/CodeGen/LiveDebugVariables.cpp
  test/DebugInfo/X86/dbg-value-inlined-parameter.ll
  test/DebugInfo/X86/live-debug-vars-discard-invalid.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43956.136929.patch
Type: text/x-patch
Size: 10584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180303/bf0dc562/attachment.bin>


More information about the llvm-commits mailing list