[llvm] [VPlan] Support VPWidenCastRecipe in isSingleScalar. (PR #143552)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 10 08:27:02 PDT 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 HEAD~1 HEAD --extensions h,cpp -- llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp llvm/lib/Transforms/Vectorize/VPlanUtils.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 c91ca9b90..18dec80ae 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -1197,7 +1197,7 @@ static void narrowToSingleScalarRecipes(VPlan &Plan) {
auto *RepOrWidenR = cast<VPSingleDefRecipe>(&R);
Instruction *UI = RepOrWidenR->getUnderlyingInstr();
if (!UI)
- continue;
+ continue;
// Skip recipes that aren't single scalars or don't have only their
// scalar results used. In the latter case, we would introduce extra
``````````
</details>
https://github.com/llvm/llvm-project/pull/143552
More information about the llvm-commits
mailing list