[all-commits] [llvm/llvm-project] c5600a: [Debugify] Limit number of processed functions for...

Djordje Todorovic via All-commits all-commits at lists.llvm.org
Thu Apr 21 05:00:29 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c5600aef888b9c32c578edc9c807d61d72a37c08
      https://github.com/llvm/llvm-project/commit/c5600aef888b9c32c578edc9c807d61d72a37c08
  Author: Nikola Tesic <nikola.tesic at syrmia.com>
  Date:   2022-04-21 (Thu, 21 Apr 2022)

  Changed paths:
    M llvm/docs/HowToUpdateDebugInfo.rst
    M llvm/lib/Transforms/Utils/Debugify.cpp
    M llvm/test/Transforms/Util/Debugify/loc-only-original-mode.ll

  Log Message:
  -----------
  [Debugify] Limit number of processed functions for original mode

Debugify in OriginalDebugInfo mode, does (DebugInfo) collect-before-pass & check-after-pass
for each instruction, which is pretty expensive. When used to analyze DebugInfo losses
in large projects (like LLVM), this raises the build time unacceptably.
This patch introduces a limit for the number of processed functions per compile unit.
By default, the limit is set to UINT_MAX (practically unlimited), and by using the introduced
option  -debugify-func-limit  the limit could be set to any positive integer number.

Differential revision: https://reviews.llvm.org/D115714




More information about the All-commits mailing list