[PATCH] D71024: [DebugInfo] Handle call site values for instructions before call bundle

David Stenberg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 4 09:14:26 PST 2019


dstenb created this revision.
dstenb added reviewers: djtodoro, NikolaPrica, aprantl, vsk.
dstenb added a project: debug-info.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

If a call is bundled then the code that looks for instructions that
produce parameter values would break when reaching the call's bundle
header, due to the `ifCall(/*AnyInBundle*/)` invocation returning true.

It is not enough to simply ignore bundle headers in the `isCall()`
invocation, as the bundle header may have defines of parameter registers
due to the call, meaning that such registers would incorrectly be
removed from the worklist. Therefore, do not look at bundle headers at
all.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71024

Files:
  llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  llvm/test/DebugInfo/MIR/Hexagon/dbgcall-site-instr-before-bundled-call.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71024.232159.patch
Type: text/x-patch
Size: 14014 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191204/421c05cf/attachment.bin>


More information about the llvm-commits mailing list