[PATCH] D127516: RegisterCoalescer: Fix verifier error when merging copy of undef

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 10 11:19:34 PDT 2022


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

There's no real read of the register, so the copy introduced a new
live value. Make sure we introduce a replacement implicit_def instead
of just erasing the copy.

      

Found from llvm-reduce since it tries to set undef on everything.


https://reviews.llvm.org/D127516

Files:
  llvm/lib/CodeGen/RegisterCoalescer.cpp
  llvm/test/CodeGen/AMDGPU/coalesce-liveout-undef-copy.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127516.435984.patch
Type: text/x-patch
Size: 4062 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220610/643af210/attachment-0001.bin>


More information about the llvm-commits mailing list