[PATCH] D94685: [CSInfo][MIPS] Update CSInfo during MipsDelaySlotFiller

Nikola Tesic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 14 06:26:53 PST 2021


ntesic created this revision.
ntesic added reviewers: vsk, aprantl, dstenb, djtodoro.
ntesic added a project: debug-info.
Herald added subscribers: ormris, atanasyan, hiraditya, arichardson, sdardis.
ntesic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

In MipsDelaySlotFiller, when replacing old call-branch with the compact branch 
instruction, an assertion is caused by erasing the old call with unhandled CSInfo.
The problem was reported in Bug 48695 <https://bugs.llvm.org/show_bug.cgi?id=48695>.
This patch fixes it, by moving call site info from the old call instruction to its replace.


https://reviews.llvm.org/D94685

Files:
  llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp
  llvm/test/DebugInfo/MIR/Mips/call-site-info-update-delay-slot-filler.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94685.316639.patch
Type: text/x-patch
Size: 4955 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210114/d3059ef2/attachment.bin>


More information about the llvm-commits mailing list