[llvm] [VPlan] Support VPReverseVectorPointer in DataWithEVL vectorization (PR #113667)

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 30 08:23:19 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 266ff98cba44b9e969e6894eaa30d4fe37647210 13ae50f1e9d10f16c348af5ab0772c409e9e935e --extensions cpp -- llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
index 8daabd4776..8d425e4682 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -1464,8 +1464,9 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
       };
       auto SetEVLForReversePointer = [&EVL](VPValue *V) -> void {
         VPReverseVectorPointerRecipe *R;
-        if (V->hasDefiningRecipe() && (R =
-                dyn_cast<VPReverseVectorPointerRecipe>(V->getDefiningRecipe())))
+        if (V->hasDefiningRecipe() &&
+            (R = dyn_cast<VPReverseVectorPointerRecipe>(
+                 V->getDefiningRecipe())))
           R->setOperand(1, &EVL);
       };
 

``````````

</details>


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


More information about the llvm-commits mailing list