[flang-commits] [flang] [llvm] [Pipeline] Add IPSCCPPass at O3 to fix function specialization phase ordering (PR #201543)
via flang-commits
flang-commits at lists.llvm.org
Fri Aug 21 11:26:37 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 -- llvm/lib/Passes/PassBuilderPipelines.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 f640234a3..2aba88e2c 100644
--- a/llvm/lib/Passes/PassBuilderPipelines.cpp
+++ b/llvm/lib/Passes/PassBuilderPipelines.cpp
@@ -1219,9 +1219,9 @@ PassBuilder::buildModuleSimplificationPipeline(OptimizationLevel Level,
// FuncSpec at O3 non-LTO is deferred to after buildInlinerPipeline
// where LoopRotate and SROA expose better specialization opportunities.
MPM.addPass(IPSCCPPass(IPSCCPOptions(/*AllowFuncSpec=*/
- !isLTOPreLink(Phase) &&
- !(Level == OptimizationLevel::O3 &&
- Phase == ThinOrFullLTOPhase::None))));
+ !isLTOPreLink(Phase) &&
+ !(Level == OptimizationLevel::O3 &&
+ Phase == ThinOrFullLTOPhase::None))));
// Attach metadata to indirect call sites indicating the set of functions
// they may target at run-time. This should follow IPSCCP.
``````````
</details>
https://github.com/llvm/llvm-project/pull/201543
More information about the flang-commits
mailing list