[llvm] [VPlan] Implementation of onlyFirstLaneUsed for VPLiveOut class (PR #93513)

via llvm-commits llvm-commits at lists.llvm.org
Tue May 28 01:17:52 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 5eea4f44250e9af0f21a573d982fd84573c77826 6ebc786c784f8567404df8da7472bc69a4144faa -- llvm/lib/Transforms/Vectorize/VPlan.h llvm/lib/Transforms/Vectorize/VPlanRecipes.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 f7a9fac8fb..5cb1047177 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
@@ -187,10 +187,10 @@ bool VPRecipeBase::mayHaveSideEffects() const {
 }
 
 bool VPLiveOut::onlyFirstLaneUsed(const VPValue *Op) const {
-  assert(is_contained(operands(), Op) &&
-   "Op must be an operand of the recipe");
+  assert(is_contained(operands(), Op) && "Op must be an operand of the recipe");
 
-  return vputils::isUniformAfterVectorization(getOperand(0)) || isa<VPWidenPointerInductionRecipe>(Op);
+  return vputils::isUniformAfterVectorization(getOperand(0)) ||
+         isa<VPWidenPointerInductionRecipe>(Op);
 }
 
 void VPLiveOut::fixPhi(VPlan &Plan, VPTransformState &State) {

``````````

</details>


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


More information about the llvm-commits mailing list