[all-commits] [llvm/llvm-project] 73777b: [Debugify] Optimize debugify original mode
Djordje Todorovic via All-commits
all-commits at lists.llvm.org
Tue Mar 22 04:14:32 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 73777b4c35a390617cce0f6b4516e98fe5a88df1
https://github.com/llvm/llvm-project/commit/73777b4c35a390617cce0f6b4516e98fe5a88df1
Author: Djordje Todorovic <djordje.todorovic at syrmia.com>
Date: 2022-03-22 (Tue, 22 Mar 2022)
Changed paths:
M clang/lib/CodeGen/BackendUtil.cpp
M llvm/include/llvm/Transforms/Utils/Debugify.h
M llvm/lib/Transforms/Utils/Debugify.cpp
M llvm/tools/opt/opt.cpp
M llvm/unittests/Transforms/Utils/DebugifyTest.cpp
Log Message:
-----------
[Debugify] Optimize debugify original mode
Before we start addressing the issue with having
a lot of false positives when using debugify in
the original mode, we have made a few patches that
should speed up the execution of the testing
utility Passes.
For example, when testing a large project
(let's say LLVM project itself), we can face
a lot of potential DI issues. Usually, we use
-verify-each-debuginfo-preserve (that is very
similar to -debugify-each) -- it collects
DI metadata before each Pass, and after the Pass
it checks if the Pass preserved the DI metadata.
However, we can speed up this process, since we
don't need to collect DI metadata before each
Pass -- we could use the DI metadata that are
collected after the previous Pass from
the pipeline as an input for the next Pass.
This patch speeds up the utility for ~2x.
Differential Revision: https://reviews.llvm.org/D115622
More information about the All-commits
mailing list