[PATCH] D127136: [RegisterCoalescer] Fix crash on early clobbered subreg operands.

Daniil Fukalov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 6 11:07:54 PDT 2022


dfukalov created this revision.
dfukalov added reviewers: foad, arsenm, qcolombet.
Herald added subscribers: kosarev, kerbowa, tpr, hiraditya, jvesely, MatzeB.
Herald added a project: All.
dfukalov requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

The issue was with processing two subregs of the same reg are used in the same
instruction (e.g. inline asm): "def early-clobber" and other just "def".
Register coalescer ran in bad recursion if the early clobbered subreg is second
in the following sequence of COPYs.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D127136

Files:
  llvm/lib/CodeGen/RegisterCoalescer.cpp
  llvm/test/CodeGen/AMDGPU/coalescer-early-clobber-subreg.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127136.434539.patch
Type: text/x-patch
Size: 5219 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220606/6ccf1fc6/attachment.bin>


More information about the llvm-commits mailing list