[all-commits] [llvm/llvm-project] 0c5eb4: [flang] Use precompiled parsing headers (#130600)

Kajetan Puchalski via All-commits all-commits at lists.llvm.org
Thu Mar 13 03:28:54 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c5eb4d68b0992f6934fead1af3474aac672f5e4
      https://github.com/llvm/llvm-project/commit/0c5eb4d68b0992f6934fead1af3474aac672f5e4
  Author: Kajetan Puchalski <kajetan.puchalski at arm.com>
  Date:   2025-03-13 (Thu, 13 Mar 2025)

  Changed paths:
    M flang/lib/Frontend/CMakeLists.txt

  Log Message:
  -----------
  [flang] Use precompiled parsing headers (#130600)

Most of the high memory usage and compilation time in the frontend units
is due to including large parsing headers.
This commit moves out several of the largest parsing headers into a new
precompiled header linked to flangFrontend.
The new compilation metrics for FrontendActions.cpp are as follows:

User time (seconds): 38.40
System time (seconds): 2.00
Maximum resident set size (kbytes): 2710964 (2.58 GB) (vs 3.78 GB)

ParserActions.cpp:

User time (seconds): 69.37
System time (seconds): 1.81
Maximum resident set size (kbytes): 2599456 (2.47 GB) (vs 4 GB)

Alongside the new precompiled header compilation unit

User time (seconds): 41.61
System time (seconds): 2.72
Maximum resident set size (kbytes): 3107644 (2.96 GB)

---------

Signed-off-by: Kajetan Puchalski <kajetan.puchalski at arm.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list