[PATCH] D83710: TableGen/GlobalISel: Allow output instructions with multiple defs

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 13 12:00:59 PDT 2020


arsenm created this revision.
arsenm added reviewers: dsanders, paquette, aemerson, aditya_nandakumar, madhur13490.
Herald added subscribers: kerbowa, tpr, rovka, nhaehnle, wdng, jvesely.
Herald added a project: LLVM.

The DAG behavior allows matchching input patterns with a single result
to the first result of an output instruction that defines multiple
results. The remaining defs are implicitly dead.

      

This starts to fix using manual selection for AMDGPU add/sub (although
it's still needed, mostly because it's also still needed for
G_PTR_ADD).


https://reviews.llvm.org/D83710

Files:
  llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-add.mir
  llvm/test/TableGen/Common/GlobalISelEmitterCommon.td
  llvm/test/TableGen/GlobalISelEmitter-output-discard.td
  llvm/utils/TableGen/GlobalISelEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83710.277521.patch
Type: text/x-patch
Size: 7474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200713/2a95bd41/attachment.bin>


More information about the llvm-commits mailing list