[PATCH] D33766: [globalisel][tablegen] Finish fixing compile-time regressions by merging the matcher and emitter state machines.

Daniel Sanders via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 1 03:20:17 PDT 2017


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

Also, made a few minor tweaks to shave off a little more cumulative memory consumption:

- All rules share a single NewMIs instead of constructing their own. Only one will end up using it.
- Use MIs.resize(1) instead of MIs.clear();MIs.push_back(I) and prevent GIM_RecordInsn from changing MIs[0].


https://reviews.llvm.org/D33766

Files:
  include/llvm/CodeGen/GlobalISel/InstructionSelector.h
  include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
  lib/CodeGen/GlobalISel/InstructionSelector.cpp
  test/TableGen/GlobalISelEmitter.td
  utils/TableGen/GlobalISelEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33766.100993.patch
Type: text/x-patch
Size: 53644 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170601/34469871/attachment.bin>


More information about the llvm-commits mailing list