[llvm] [VectorCombine] Refine cost model and decision logic in foldSelectShuffle (PR #146694)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 24 02:37:48 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 cpp -- llvm/lib/Transforms/Vectorize/VectorCombine.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
index e4f2e00a2..2c69015f3 100644
--- a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+++ b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -3217,7 +3217,8 @@ static bool feedsIntoVectorReduction(ShuffleVectorInst *SVI) {
if (!isa<BinaryOperator>(UI) && !isa<ShuffleVectorInst>(UI))
return false;
- WorkList.emplace_back(UI);;
+ WorkList.emplace_back(UI);
+ ;
}
}
return FoundReduction;
``````````
</details>
https://github.com/llvm/llvm-project/pull/146694
More information about the llvm-commits
mailing list