[PATCH] D74030: [DebugInfo] Avoid generating duplicate llvm.dbg.value

Alok Kumar Sharma via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 23 23:21:36 PST 2020


alok updated this revision to Diff 246144.
alok edited the summary of this revision.
alok added a comment.

This is updated to re-base and addressing common concern about performance and suggestion form @vsk  to use RemoveRedundantDbgInstrs.

Now,

1. Avoid insertion of duplicate dbg.value if immediate next instruction is identical dbg.value. (avoids generating duplicates for same load/store, forward scan is not done)
2. Delete duplicate dbg.value in case duplicate dbg.value are present (may be inserted for different load/store) by calling RemoveRedundantDbgInstrs.


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

https://reviews.llvm.org/D74030

Files:
  llvm/lib/Transforms/Utils/Local.cpp
  llvm/test/DebugInfo/duplicate_dbgvalue.ll
  llvm/test/Transforms/Util/dbg-call-bitcast.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74030.246144.patch
Type: text/x-patch
Size: 14624 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200224/6113ff74/attachment.bin>


More information about the llvm-commits mailing list