[PATCH] D27188: Use trigrams to speed up SpecialCaseList.
Ivan Krasin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 30 18:50:08 PST 2016
krasin marked an inline comment as done.
krasin added inline comments.
================
Comment at: include/llvm/Support/TrigramIndex.h:65-66
+ // decreases the costs in the regular case.
+ std::unordered_map<unsigned, SmallVector<size_t, 4>> Index =
+ std::unordered_map<unsigned, SmallVector<size_t, 4>>(256);
+};
----------------
pcc wrote:
> Does `std::unordered_map<unsigned, SmallVector<size_t, 4>> Index{256};` work?
Yes, it does. Thank you!
https://reviews.llvm.org/D27188
More information about the llvm-commits
mailing list