[llvm] [LV][NFC] Refactor code for extracting first active element (PR #131118)

via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 14 03:12:22 PDT 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 9b83ffb5c609290b5b457a2038ee663beaf795ab 4ff1fd11582e994e8531c88011a4ac606f8b3c6d --extensions h,cpp -- llvm/lib/Transforms/Vectorize/VPlan.h llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
index 28f2a9e47b..d97805d874 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
@@ -886,7 +886,7 @@ bool VPInstruction::onlyFirstLaneUsed(const VPValue *Op) const {
   switch (getOpcode()) {
   default:
     return false;
- case Instruction::ExtractElement:
+  case Instruction::ExtractElement:
     return Op == getOperand(1);
   case Instruction::PHI:
     return true;

``````````

</details>


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


More information about the llvm-commits mailing list