[DebugInfo] Replace UndefValue with PoisonValue in setKillLocation
authorOCHyams <orlando.hyams@sony.com>
Fri, 6 Jan 2023 10:49:13 +0000 (10:49 +0000)
committerOCHyams <orlando.hyams@sony.com>
Fri, 6 Jan 2023 10:51:02 +0000 (10:51 +0000)
commit7ea47f9e41935e0d132499e8832bb8d45f39d698
tree6af489c8a24cecd98d6769d43fc69bbf1cc901ad
parentb7b0ce6e76f44af2c9b0affd15ef6f81df801dfc
[DebugInfo] Replace UndefValue with PoisonValue in setKillLocation

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

Reviewed By: nlopes

Differential Revision: https://reviews.llvm.org/D140905
18 files changed:
llvm/include/llvm/IR/IntrinsicInst.h
llvm/test/DebugInfo/Generic/assignment-tracking/loop-deletion/dead-loop.ll
llvm/test/DebugInfo/Generic/assignment-tracking/salvage-value.ll
llvm/test/DebugInfo/Generic/pr40628.ll
llvm/test/DebugInfo/X86/dead-store-elimination-marks-undef.ll
llvm/test/DebugInfo/X86/licm-undef-dbg-value.ll
llvm/test/DebugInfo/limit-arglist-size.ll
llvm/test/DebugInfo/salvage-limit-expr-size.ll
llvm/test/Transforms/BDCE/pr41925.ll
llvm/test/Transforms/InstCombine/debuginfo-dce.ll
llvm/test/Transforms/InstCombine/debuginfo-sink.ll
llvm/test/Transforms/InstCombine/erase-dbg-values-at-dead-alloc-site.ll
llvm/test/Transforms/InstCombine/pr43893.ll
llvm/test/Transforms/InstCombine/stacksave-debuginfo.ll
llvm/test/Transforms/LoopDeletion/diundef.ll
llvm/test/Transforms/LoopStrengthReduce/dbg-preserve-1.ll
llvm/test/Transforms/Reassociate/reassociate_dbgvalue_discard.ll
llvm/test/Transforms/Reassociate/undef_intrinsics_when_deleting_instructions.ll