[PATCH] D147312: [Assignment Tracking][SROA] Handle DIArgList in migrateDebugInfo

Orlando Cazalet-Hyams via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 31 03:47:19 PDT 2023


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

If the to-be-split dbg.assign has a `DIArgList` and a new `Value` has been requested then use a kill-location for the new dbg.assign. We can't simply replace the value component (a `DIArgList`) with the new `Value` as that would leave the `DIExpression` in an invalid state (`DW_OP_LLVM_arg` operands with no arglist).

This was tripping an assertion in LiveDebugValues in a self hosted build.


https://reviews.llvm.org/D147312

Files:
  llvm/lib/Transforms/Scalar/SROA.cpp
  llvm/test/DebugInfo/Generic/assignment-tracking/sroa/arglist.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147312.509977.patch
Type: text/x-patch
Size: 5472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230331/40dde128/attachment.bin>


More information about the llvm-commits mailing list