[all-commits] [llvm/llvm-project] a199d8: [clang-tidy][NFC] Improve compilation time of Inte...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Thu Aug 31 12:23:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a199d8fac027c226577ffb0c47b014015980dbb5
      https://github.com/llvm/llvm-project/commit/a199d8fac027c226577ffb0c47b014015980dbb5
  Author: Piotr Zegar <me at piotrzegar.pl>
  Date:   2023-08-31 (Thu, 31 Aug 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/modernize/IntegralLiteralExpressionMatcher.cpp
    M clang-tools-extra/clang-tidy/modernize/IntegralLiteralExpressionMatcher.h

  Log Message:
  -----------
  [clang-tidy][NFC] Improve compilation time of IntegralLiteralExpressionMatcher

When using agressive inlining -Xclang -mllvm -Xclang -inline-threshold=500,
this file takes 10-18 min to compile. This is caused by in-direct recursion.
Looks like transforming code to use templates and lambdas instead of
std::function and member function pointer reduces this time to 0.5s.

Fixes: #59658




More information about the All-commits mailing list