[llvm] InstCombine: Fold shufflevector(select) and shufflevector(phi) (PR #113746)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 25 17:32:43 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 75c1c2614aea23647871dcfa161cf0fad3b19312 f5ceabaa8ecc7053e2a312a1cced49fd7c85fc30 --extensions cpp -- llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp b/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
index 7989af5e0e..286d556f0e 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
@@ -2902,7 +2902,8 @@ Instruction *InstCombinerImpl::visitShuffleVectorInst(ShuffleVectorInst &SVI) {
if (Constant *C = dyn_cast<Constant>(RHS)) {
if (SelectInst *SI = dyn_cast<SelectInst>(LHS)) {
- if (Instruction *I = FoldOpIntoSelect(SVI, SI, /*FoldWIthMultiUse=*/false))
+ if (Instruction *I =
+ FoldOpIntoSelect(SVI, SI, /*FoldWIthMultiUse=*/false))
return I;
}
if (PHINode *PN = dyn_cast<PHINode>(LHS)) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/113746
More information about the llvm-commits
mailing list