[llvm] [TLI] ReplaceWithVecLib pass uses CostModel (PR #78688)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 19 01:45:42 PST 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 e2bb47caa69f393b011c2d8e3295587ae35699b5 e476a0e02c024d3787b4b2268faa72c9fe80a60c -- llvm/lib/CodeGen/ReplaceWithVeclib.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/ReplaceWithVeclib.cpp b/llvm/lib/CodeGen/ReplaceWithVeclib.cpp
index c57156c00a..2e1edef0e4 100644
--- a/llvm/lib/CodeGen/ReplaceWithVeclib.cpp
+++ b/llvm/lib/CodeGen/ReplaceWithVeclib.cpp
@@ -148,7 +148,8 @@ static bool replaceWithCallToVeclib(const TargetLibraryInfo &TLI,
   // At the moment VFABI assumes the return type is always widened unless it is
   // a void type.
   auto *VectorTy = dyn_cast<VectorType>(I.getType());
-  ElementCount EC(VectorTy ? VectorTy->getElementCount() : ElementCount::getFixed(0));
+  ElementCount EC(VectorTy ? VectorTy->getElementCount()
+                           : ElementCount::getFixed(0));
 
   // Compute the argument types of the corresponding scalar call and the scalar
   // function name. For calls, it additionally finds the function to replace

``````````

</details>


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


More information about the llvm-commits mailing list