[PATCH] D43270: [GISel][Tablegen]: Make GlobalISelEmitter rule prioritization similar to that of selectionDAG

Aditya Nandakumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 13 17:12:27 PST 2018


aditya_nandakumar created this revision.
aditya_nandakumar added reviewers: dsanders, qcolombet, rovka, ab.
Herald added a subscriber: kristof.beyls.

This patch changes GlobalISelEmitter to rank patterns similar to how the DAG does it (ie it computes a score for a pattern and adds the added complexity to it).
This is so that the decision tree for GISelSelector remains compatible with that of SelectionDAG.


Repository:
  rL LLVM

https://reviews.llvm.org/D43270

Files:
  test/CodeGen/X86/GlobalISel/select-blsi.mir
  test/TableGen/GlobalISelEmitter.td
  utils/TableGen/GlobalISelEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43270.134151.patch
Type: text/x-patch
Size: 50734 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180214/80352195/attachment.bin>


More information about the llvm-commits mailing list