[PATCH] D74030: [DebugInfo] Avoid generating duplicate llvm.dbg.value
Vedant Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 24 10:49:01 PST 2020
vsk added a comment.
In D74030#1888655 <https://reviews.llvm.org/D74030#1888655>, @alok wrote:
> 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)
Why is it necessary to do (1)? If the goal is to have cleaner IR after LowerDbgDeclare, it seems like (2) achieves that.
> 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
More information about the llvm-commits
mailing list