[llvm] [VPlan] Use VPInstructionWithType for uniform casts. (PR #140623)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 10 06:58:21 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/LoopVectorizationPlanner.h llvm/lib/Transforms/Vectorize/LoopVectorize.cpp llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h llvm/lib/Transforms/Vectorize/VPlan.h llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp 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/VPlanRecipes.cpp b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
index 9a61f21a5..b5fb1d673 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
@@ -858,8 +858,7 @@ bool VPInstruction::isVectorToScalar() const {
bool VPInstruction::isSingleScalar() const {
// TODO: Set IsSingleScalar for PHI.
- return IsSingleScalar ||
- getOpcode() == Instruction::PHI;
+ return IsSingleScalar || getOpcode() == Instruction::PHI;
}
void VPInstruction::execute(VPTransformState &State) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/140623
More information about the llvm-commits
mailing list