[PATCH] Change order of tablegen generated fastisel instruction code to be based on instruction complexity

Bill Seurer seurer at linux.vnet.ibm.com
Thu Nov 13 14:47:23 PST 2014


================
Comment at: /home/seurer/llvm/llvm-oneoff/utils/TableGen/FastISelEmitter.cpp:595
@@ -570,2 +594,3 @@
 
-    SimplePatterns[Operands][OpcodeName][VT][RetVT][PredicateCheck] = Memo;
+// This was used when testing
+//    if (SimplePatterns[Operands][OpcodeName][VT][RetVT].count(complexity)) {
----------------
echristo wrote:
> Is there a reason we either a) don't want this on by default, or b) would never want this on?
When I tried it generated over 150 warnings so it's probably just too noisy.  I wasn't sure if multiple patterns having the same complexity could be a potential issue, though.

http://reviews.llvm.org/D6220






More information about the llvm-commits mailing list