[PATCH] D150216: Add support for salvaging debug info from icmp instrcuctions.

Shubham Sandeep Rastogi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 9 11:34:31 PDT 2023


rastogishubham created this revision.
rastogishubham added reviewers: aprantl, jmorse, Orlando.
rastogishubham added a project: debug-info.
Herald added subscribers: hoy, hiraditya.
Herald added a project: All.
rastogishubham requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

salvageDebugInfo() is a function that allows us to reatin debug info for instructions that have been optimized out. Currently, it doesn't support salvaging the debug information from icmp instrcutions, but DWARF expressions can emulate an icmp by using the DWARF conditional expressions. This patch adds support for salvaging debug information from icmp instructions.


https://reviews.llvm.org/D150216

Files:
  llvm/lib/IR/DebugInfoMetadata.cpp
  llvm/lib/Transforms/Utils/Local.cpp
  llvm/test/DebugInfo/salvage-icmp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150216.520766.patch
Type: text/x-patch
Size: 5573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230509/dd38ce3b/attachment.bin>


More information about the llvm-commits mailing list