[llvm] [LV] Support binary and unary operations with EVL-vectorization (PR #93854)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 30 11:04:57 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 ce5b371606422ed21cda0e24cdc89cb41cdc5600 fa0d9387ebcb6bbed3b6baa55c7e3afe1f210be2 -- llvm/lib/Transforms/Vectorize/VPlan.h llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp llvm/lib/Transforms/Vectorize/VPlanValue.h
``````````
</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 39ebd44909..fe83cd1029 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -1304,7 +1304,8 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
ReversePostOrderTraversal<VPBlockDeepTraversalWrapper<VPBlockBase *>> RPOT(
Plan.getEntry());
DenseSet<VPValue *> HeaderMasks = collectAllHeaderMasks(Plan);
- for (VPBasicBlock *VPBB : reverse(VPBlockUtils::blocksOnly<VPBasicBlock>(RPOT))) {
+ for (VPBasicBlock *VPBB :
+ reverse(VPBlockUtils::blocksOnly<VPBasicBlock>(RPOT))) {
// The recipes in the block are processed in reverse order, to catch chains
// of dead recipes.
for (VPRecipeBase &R : make_early_inc_range(reverse(*VPBB))) {
@@ -1344,8 +1345,6 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
recursivelyDeleteDeadRecipes(HeaderMask);
}
-
-
/// Add a VPEVLBasedIVPHIRecipe and related recipes to \p Plan and
/// replaces all uses except the canonical IV increment of
/// VPCanonicalIVPHIRecipe with a VPEVLBasedIVPHIRecipe. VPCanonicalIVPHIRecipe
``````````
</details>
https://github.com/llvm/llvm-project/pull/93854
More information about the llvm-commits
mailing list