[llvm] [llvm][Support] Enable pass timing in StandardInstrumentations constr… (PR #108983)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 17 07:45:29 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 5aaf384b1614fcef5504d0b16d3e5063f72943c1 33416d81bf28a5c3a1d16fc37ac83661e0ceabe5 --extensions cpp,h -- llvm/include/llvm/Passes/StandardInstrumentations.h llvm/lib/Passes/StandardInstrumentations.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Passes/StandardInstrumentations.cpp b/llvm/lib/Passes/StandardInstrumentations.cpp
index 44a0a2c037..7730d10e96 100644
--- a/llvm/lib/Passes/StandardInstrumentations.cpp
+++ b/llvm/lib/Passes/StandardInstrumentations.cpp
@@ -2447,8 +2447,7 @@ StandardInstrumentations::StandardInstrumentations(
     : PrintPass(DebugLogging, PrintPassOpts),
       TimePasses(EnableTimePasses ? *EnableTimePasses : TimePassesIsEnabled,
                  EnablePerRunTiming ? *EnablePerRunTiming : TimePassesPerRun),
-      OptNone(DebugLogging),
-      OptPassGate(Context),
+      OptNone(DebugLogging), OptPassGate(Context),
       PrintChangedIR(PrintChanged == ChangePrinter::Verbose),
       PrintChangedDiff(PrintChanged == ChangePrinter::DiffVerbose ||
                            PrintChanged == ChangePrinter::ColourDiffVerbose,

``````````

</details>


https://github.com/llvm/llvm-project/pull/108983


More information about the llvm-commits mailing list