[PATCH] D101523: [DebugInfo] Fix updateDbgUsersToReg to support DBG_VALUE_LIST

Stephen Tozer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 29 15:58:12 PDT 2021


StephenTozer updated this revision to Diff 341688.
StephenTozer added a comment.

Fixed an issue with the previous implementation of this fix: the `CopyDbgUsers` vectors would sometimes contain duplicate elements, causing errors when we attempt to replace the same debug operand multiple times. This has been fixed by making it into a SmallSet instead of a SmallVector, although we still convert to SmallVector before updating to avoid changing the MRI interface.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101523/new/

https://reviews.llvm.org/D101523

Files:
  llvm/include/llvm/CodeGen/MachineRegisterInfo.h
  llvm/lib/CodeGen/MachineCopyPropagation.cpp
  llvm/test/DebugInfo/Generic/machine-cp-updates-dbg-reg.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101523.341688.patch
Type: text/x-patch
Size: 12152 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210429/51b7ec27/attachment.bin>


More information about the llvm-commits mailing list