[PATCH] D50272: [tablegen] Improve performance of -gen-register-info by replacing barely-necessary std::map with a sorted vector
Roman Tereshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 3 21:26:34 PDT 2018
rtereshin added inline comments.
================
Comment at: utils/TableGen/RegisterInfoEmitter.cpp:466
}
+ std::sort(DwarfRegNums.begin(), DwarfRegNums.end(),
+ on_first<LessRecordRegister>());
----------------
Ah, missed an easy one: this sort is not needed anymore as we don't insert anything into `DwarfRegNums` anymore in the loop above AFAICT.
Repository:
rL LLVM
https://reviews.llvm.org/D50272
More information about the llvm-commits
mailing list