[PATCH] D36084: [globalisel][tablegen] Support zero-instruction emission.

Daniel Sanders via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 31 05:26:38 PDT 2017


dsanders created this revision.
Herald added subscribers: igorb, kristof.beyls.

Support the case where an operand of a pattern is also the whole of the
result pattern. In this case the original result and all its uses must be
replaced by the operand. However, register class restrictions can require
a COPY. This patch handles both cases by always emitting the copy and
leaving it for the register allocator to optimize.

Depends on https://reviews.llvm.org/D35833


https://reviews.llvm.org/D36084

Files:
  utils/TableGen/GlobalISelEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36084.108905.patch
Type: text/x-patch
Size: 4673 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170731/118e7a85/attachment.bin>


More information about the llvm-commits mailing list