[PATCH] D50272: [tablegen] Improve performance of -gen-register-info by replacing barely-necessary std::map with a sorted vector

Daniel Sanders via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 3 19:11:54 PDT 2018


dsanders updated this revision to Diff 159155.
dsanders added a comment.

Use std::move
Fix the comparison by pointer (but still avoid redundant use of LessRecordRegister since it's expensive compared to what we need)
Fix the lower_bound issue

I'm going to follow up with a couple tidy-ups since the extra code has got a bit large


Repository:
  rL LLVM

https://reviews.llvm.org/D50272

Files:
  include/llvm/ADT/STLExtras.h
  utils/TableGen/RegisterInfoEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50272.159155.patch
Type: text/x-patch
Size: 5646 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180804/54282f3a/attachment.bin>


More information about the llvm-commits mailing list