[llvm] [VPlan] Move predication to VPlanTransform (NFC) (WIP). (PR #128420)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 23 06:08:38 PST 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 72791fef6d6c84b72cb961b288b25283bea97310 92e45cdd100c2ba196114e6edfa1c9217b8d6640 --extensions cpp,h -- llvm/lib/Transforms/Vectorize/VPlanPredicator.cpp llvm/lib/Transforms/Vectorize/LoopVectorize.cpp llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h llvm/lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp llvm/lib/Transforms/Vectorize/VPlanHCFGBuilder.h llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp llvm/lib/Transforms/Vectorize/VPlanTransforms.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index a2e20a701d..7d1869830b 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -9160,7 +9160,6 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range) {
return Legal->blockNeedsPredication(BB) || NeedsBlends;
});
-
auto *MiddleVPBB = Plan->getMiddleBlock();
VPRecipeBuilder RecipeBuilder(*Plan, OrigLoop, TLI, &TTI, Legal, CM, PSE,
@@ -9251,7 +9250,6 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range) {
"Unexpected multidef recipe");
R.eraseFromParent();
}
-
}
assert(isa<VPRegionBlock>(Plan->getVectorLoopRegion()) &&
``````````
</details>
https://github.com/llvm/llvm-project/pull/128420
More information about the llvm-commits
mailing list