This helps towards the effort to remove UndefValue from LLVM.
Related to https://discourse.llvm.org/t/auto-undef-debug-uses-of-a-deleted-value
| Paths 
 |  Differential  D140906  
[DebugInfo] Replace UndefValue with PoisonValue in AssignmentTrackingAnalysis ClosedPublic Authored by Orlando on Jan 3 2023, 9:10 AM. 
Details Summary This helps towards the effort to remove UndefValue from LLVM. Related to https://discourse.llvm.org/t/auto-undef-debug-uses-of-a-deleted-value 
Diff Detail 
 Event TimelineOrlando added a parent revision: D140905: [DebugInfo] Replace UndefValue with PoisonValue in setKillLocation.Jan 3 2023, 9:13 AM Comment Actions Code LGTM, thank you! One small request is to move some comments around and update llvm/docs/AssignmentTracking.md to reflect the change. Something like: The first three parameters look and behave like an llvm.dbg.value. ID is a reference to a store (see next section). Address is the destination address of the store and it is modified by AddressExpression. An empty/undef/poison Address represents <...>. 
 Orlando edited parent revisions, added: D140904: [DebugInfo] Prefer to use setKillLocation rather than replacing operands with undef; removed: D140905: [DebugInfo] Replace UndefValue with PoisonValue in setKillLocation.Jan 6 2023, 12:19 AM Orlando removed a parent revision: D140904: [DebugInfo] Prefer to use setKillLocation rather than replacing operands with undef. Orlando added a parent revision: D141125: [NFC][Assignment Tracking] add is/setKillAddress.Jan 6 2023, 5:13 AM Orlando marked 2 inline comments as done.Comment Actions Thanks for the review! + Update the docs This revision is now accepted and ready to land.Jan 9 2023, 12:55 PM This revision was landed with ongoing or failed builds.Jan 12 2023, 2:11 AM Closed by commit rG12ece76815ab: [DebugInfo] Replace UndefValue with PoisonValue in AssignmentTrackingAnalysis (authored by Orlando).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
Diff 488552 llvm/docs/AssignmentTracking.md
 llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Somewhat stale reference to undef directly here. Could the comment just be folded into a general one on isAddressKillLocation itself?