[PATCH] D139590: [RegAllocFast] Handle new debug values for spills

Josh Stone via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 15:48:00 PST 2022


cuviper created this revision.
Herald added subscribers: hiraditya, nemanjai, qcolombet, MatzeB.
Herald added a project: All.
cuviper requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

These new debug values get inserted after the place where the spill
happens, which means they won't be reached by the reverse traversal of
basic block instructions. This would crash or fail assertions if they
contained any virtual registers to be replaced. We can manually handle
the new debug values right away to resolve this.

Fixes https://github.com/llvm/llvm-project/issues/59172


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D139590

Files:
  llvm/lib/CodeGen/RegAllocFast.cpp
  llvm/test/CodeGen/PowerPC/regalloc-fast-debug-spill.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139590.481092.patch
Type: text/x-patch
Size: 28392 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221207/c287ad3e/attachment-0001.bin>


More information about the llvm-commits mailing list