[llvm] Disable pre-link LTO vectorisation and tweak LTO pipeline (PR #192068)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 14 07:36:49 PDT 2026
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 origin/main HEAD --extensions cpp,h -- llvm/include/llvm/Transforms/IPO/Inliner.h llvm/lib/Passes/PassBuilderPipelines.cpp llvm/lib/Transforms/IPO/FunctionSpecialization.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Passes/PassBuilderPipelines.cpp b/llvm/lib/Passes/PassBuilderPipelines.cpp
index 2b443b9eb..25c906157 100644
--- a/llvm/lib/Passes/PassBuilderPipelines.cpp
+++ b/llvm/lib/Passes/PassBuilderPipelines.cpp
@@ -2242,7 +2242,8 @@ PassBuilder::buildLTODefaultPipeline(OptimizationLevel Level,
// The loop passes in LPM (LoopFullUnrollPass) do not preserve MemorySSA.
// *All* loop passes must preserve it, in order to be able to use it.
- // TODO: Enable MemorySSA for loop passes after we remove the LoopFullUnrollPass.
+ // TODO: Enable MemorySSA for loop passes after we remove the
+ // LoopFullUnrollPass.
MainFPM.addPass(
createFunctionToLoopPassAdaptor(std::move(LPM), /*UseMemorySSA=*/false));
diff --git a/llvm/lib/Transforms/IPO/FunctionSpecialization.cpp b/llvm/lib/Transforms/IPO/FunctionSpecialization.cpp
index 0d1a1d7d8..c3963e28a 100644
--- a/llvm/lib/Transforms/IPO/FunctionSpecialization.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionSpecialization.cpp
@@ -63,9 +63,9 @@ static cl::opt<unsigned> MinFunctionSize(
cl::desc("Don't specialize functions that have less than this number of "
"instructions"));
-static cl::opt<unsigned> MaxCodeSizeGrowth(
- "funcspec-max-codesize-growth", cl::init(4), cl::Hidden, cl::desc(
- "Maximum codesize growth allowed per function"));
+static cl::opt<unsigned>
+ MaxCodeSizeGrowth("funcspec-max-codesize-growth", cl::init(4), cl::Hidden,
+ cl::desc("Maximum codesize growth allowed per function"));
static cl::opt<unsigned> MinCodeSizeSavings(
"funcspec-min-codesize-savings", cl::init(20), cl::Hidden,
``````````
</details>
https://github.com/llvm/llvm-project/pull/192068
More information about the llvm-commits
mailing list