[PATCH] D118385: [NFC] Optimize FoldingSet usage where it matters

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 29 03:16:24 PST 2022


nikic added a comment.

It might make sense to split this into individual changes, so it's clearer what impact each of them has.

I tested just moving the `AddXYZ` methods into the header, which had a large positive impact: https://llvm-compile-time-tracker.com/compare.php?from=784e01abca65722df8969b56d2d240cf9ced9c85&to=179ee195b8ce9f483827f843fc063388aed7f0d1&stat=instructions

Moving hashing into the header has smaller impact: https://llvm-compile-time-tracker.com/compare.php?from=179ee195b8ce9f483827f843fc063388aed7f0d1&to=5735a8981d5cf00281490989d02d7771b95cda51&stat=instructions


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118385/new/

https://reviews.llvm.org/D118385



More information about the llvm-commits mailing list