[PATCH] D128211: [DebugInfo][InstrRef][NFC] Handle transfers of variadic debug values in InstrRefLDV

Stephen Tozer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 20 08:33:31 PDT 2022


StephenTozer created this revision.
StephenTozer added reviewers: jmorse, Orlando.
StephenTozer added a project: debug-info.
Herald added a subscriber: hiraditya.
Herald added a project: All.
StephenTozer requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch adds the last of the changes required to enable DBG_VALUE_LIST handling in InstrRefLDV, handling variadic debug values during the transfer tracking step. Most of the changes are fairly straightforward, and based around tracking multiple locations per variable in TransferTracker::VLocTracker. There has also been a significant change in tracking use-before-defs, since we now have to 1) only emit a UseBeforeDef value when all of its values are defined, meaning that we can't just look up whether there is a dependent UseBeforeDef for each instruction as we go along, and 2) when it is time to emit a UseBeforeDef, we have to check that all the values it wants to use are still available - it is possible that one of the required values is killed before all of the values have been defined.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128211

Files:
  llvm/include/llvm/ADT/STLExtras.h
  llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
  llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128211.438412.patch
Type: text/x-patch
Size: 27057 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220620/f755f61e/attachment.bin>


More information about the llvm-commits mailing list