[llvm] [TableGen] Avoid repeated hash lookups (NFC) (PR #107669)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 7 08:36:58 PDT 2024


kazutakahirata wrote:

> Nice. Are there any good static analysis tools for detecting repeated hash lookups?

Thanks!  I am not aware of one.  I basically do `ag -B5 "(insert|try_emplace)\("` and then look for `find` and `contains` in the output, where `ag` is a faster version of `find | xargs grep`.

https://github.com/llvm/llvm-project/pull/107669


More information about the llvm-commits mailing list