[llvm] VPlan: increase simplification power of simplifyRecipe (PR #93998)

via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 04:23:10 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 4f075086e7b8d9108749117f53999cd4afdd6894 d873ba1befde108b22400a57f133f0c43f50a201 --extensions h,cpp -- llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h llvm/lib/Transforms/Vectorize/LoopVectorize.cpp llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h 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/VPlanTransforms.cpp b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
index 8d9a6ccd5e..736bf53dc1 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -1050,7 +1050,8 @@ simplifyRecipe(VPRecipeBase &R, VPTypeAnalysis &TypeInfo, VPlan &Plan) {
     VPInstruction *YorZ = Builder.createOr(Y, Z, R.getDebugLoc());
     VPInstruction *VPI = Builder.createLogicalAnd(X, YorZ, R.getDebugLoc());
     R.getVPSingleValue()->replaceAllUsesWith(VPI);
-    // Order of simplification matters: simplify sub-recipes before root recipes.
+    // Order of simplification matters: simplify sub-recipes before root
+    // recipes.
     return {YorZ, VPI};
   }
 

``````````

</details>


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


More information about the llvm-commits mailing list