[PATCH] D93144: RegisterCoalescer: Fix not setting undef on coalesced subregister uses

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 11 14:34:25 PST 2020


arsenm created this revision.
arsenm added reviewers: qcolombet, MatzeB, kparzysz, rampitec, foad, tpr, dstuttard.
Herald added subscribers: kerbowa, hiraditya, nhaehnle, jvesely.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

This was only adding undef to the use if the copy itself had a
subregister index. It did not consider the subrange liveness if the
use had a subreg index to begin with.


https://reviews.llvm.org/D93144

Files:
  llvm/lib/CodeGen/RegisterCoalescer.cpp
  llvm/test/CodeGen/AMDGPU/undef-subreg-use-after-coalesce.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93144.311323.patch
Type: text/x-patch
Size: 5129 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201211/7a867ae7/attachment.bin>


More information about the llvm-commits mailing list