[llvm] Port Swift's merge function pass to llvm: merging functions that differ in constants (PR #68235)

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 4 10:22:04 PDT 2023


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 6cbf6f5d376a06d96bc1320e83d479749873c654 7e422cecbd5fc28fb0ec699b702d6bccf321f93f -- llvm/include/llvm/Transforms/IPO/MergeFunctionsIgnoringConst.h llvm/include/llvm/Transforms/Utils/FunctionComparatorIgnoringConst.h llvm/include/llvm/Transforms/Utils/FunctionHashIgnoringConst.h llvm/include/llvm/Transforms/Utils/MergeFunctionsIgnoringConst.h llvm/lib/Transforms/IPO/MergeFunctionsIgnoringConst.cpp llvm/lib/Transforms/Utils/FunctionComparatorIgnoringConst.cpp llvm/lib/Transforms/Utils/FunctionHashIgnoringConst.cpp llvm/unittests/Transforms/Utils/FunctionHashIgnoringConstTest.cpp llvm/include/llvm/Transforms/Utils/FunctionComparator.h llvm/lib/Passes/PassBuilder.cpp llvm/lib/Passes/PassBuilderPipelines.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp
index 14a0b62cb9a8..069337ac37b3 100644
--- a/llvm/lib/Passes/PassBuilder.cpp
+++ b/llvm/lib/Passes/PassBuilder.cpp
@@ -234,8 +234,8 @@
 #include "llvm/Transforms/Utils/CanonicalizeAliases.h"
 #include "llvm/Transforms/Utils/CanonicalizeFreezeInLoops.h"
 #include "llvm/Transforms/Utils/CountVisits.h"
-#include "llvm/Transforms/Utils/Debugify.h"
 #include "llvm/Transforms/Utils/DXILUpgrade.h"
+#include "llvm/Transforms/Utils/Debugify.h"
 #include "llvm/Transforms/Utils/EntryExitInstrumenter.h"
 #include "llvm/Transforms/Utils/FixIrreducible.h"
 #include "llvm/Transforms/Utils/HelloWorld.h"

``````````

</details>


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


More information about the llvm-commits mailing list