[llvm] Fix scalar overload name constructed by ReplaceWithVeclib.cpp (PR #111095)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 3 20:51:40 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 fea18afeed39fe4435d67eee1834f0f34b23013d 8227c918a8f99ac081e630fb2a1bfa14be6e82c6 --extensions cpp -- 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 551210db85..af57f0aac6 100644
--- a/llvm/lib/CodeGen/ReplaceWithVeclib.cpp
+++ b/llvm/lib/CodeGen/ReplaceWithVeclib.cpp
@@ -118,7 +118,8 @@ static bool replaceWithCallToVeclib(const TargetLibraryInfo &TLI,
auto *ArgTy = Arg.value()->getType();
// Gather type if it is used in the overload name.
if (isVectorIntrinsicWithOverloadTypeAtArg(IID, Arg.index())) {
- if (!isVectorIntrinsicWithScalarOpAtArg(IID, Arg.index()) && isa<VectorType>(ArgTy))
+ if (!isVectorIntrinsicWithScalarOpAtArg(IID, Arg.index()) &&
+ isa<VectorType>(ArgTy))
OloadTys.push_back(cast<VectorType>(ArgTy)->getElementType());
else
OloadTys.push_back(ArgTy);
``````````
</details>
https://github.com/llvm/llvm-project/pull/111095
More information about the llvm-commits
mailing list