[llvm] IVDesc: unify RecurKinds IAnyOf and FAnyOf (PR #118393)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 13 04:52:44 PST 2025


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 7e01a322f850e86be9eefde8ae5a30e532d22cfa cc0f86ccdf3a04b7379f7845e00b3bfeee138fae --extensions cpp,h -- llvm/include/llvm/Analysis/IVDescriptors.h llvm/lib/Analysis/IVDescriptors.cpp llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 48b2f44e25..28faf8c343 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -19410,7 +19410,8 @@ class HorizontalReduction {
       if (UseSelect &&
           LHS->getType() == CmpInst::makeCmpResultType(LHS->getType()))
         return Builder.CreateSelect(LHS, Builder.getTrue(), RHS, Name);
-      unsigned RdxOpcode = RecurrenceDescriptor::getOpcode(Kind, LHS->getType());
+      unsigned RdxOpcode =
+          RecurrenceDescriptor::getOpcode(Kind, LHS->getType());
       return Builder.CreateBinOp((Instruction::BinaryOps)RdxOpcode, LHS, RHS,
                                  Name);
     }
@@ -19418,7 +19419,8 @@ class HorizontalReduction {
       if (UseSelect &&
           LHS->getType() == CmpInst::makeCmpResultType(LHS->getType()))
         return Builder.CreateSelect(LHS, RHS, Builder.getFalse(), Name);
-      unsigned RdxOpcode = RecurrenceDescriptor::getOpcode(Kind, LHS->getType());
+      unsigned RdxOpcode =
+          RecurrenceDescriptor::getOpcode(Kind, LHS->getType());
       return Builder.CreateBinOp((Instruction::BinaryOps)RdxOpcode, LHS, RHS,
                                  Name);
     }
@@ -19427,7 +19429,8 @@ class HorizontalReduction {
     case RecurKind::Xor:
     case RecurKind::FAdd:
     case RecurKind::FMul: {
-      unsigned RdxOpcode = RecurrenceDescriptor::getOpcode(Kind, LHS->getType());
+      unsigned RdxOpcode =
+          RecurrenceDescriptor::getOpcode(Kind, LHS->getType());
       return Builder.CreateBinOp((Instruction::BinaryOps)RdxOpcode, LHS, RHS,
                                  Name);
     }

``````````

</details>


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


More information about the llvm-commits mailing list