[PATCH] D16832: Minor performance tweaks to llvm-tblgen (and a few that might be a good idea)

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 3 10:16:00 PST 2016

rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.

lgtm, do you need someone to commit this?

Comment at: C:/LLVM/llvm/include/llvm/TableGen/Record.h:1312
@@ -1311,2 +1311,3 @@
       if (SCPair.first->getNameInitAsString() == Name)
         return true;
+    }
This should do the trick:
  if (SCPair.first->getNameInit()->getValue() == Name)


More information about the llvm-commits mailing list