[llvm] [SelectionDAG] Simplify vselect true, T, F -> T (PR #100992)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 29 04:09:46 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 5bd3aef5e285cce793e3fc6b21299ac9d650a947 4552d3047dd40d347d280c2b0cc439df1affa080 --extensions h,cpp -- llvm/include/llvm/CodeGen/SelectionDAG.h llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 27dd987075..0266846620 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -9924,7 +9924,7 @@ SDValue SelectionDAG::simplifySelect(SDValue Cond, SDValue T, SDValue F) {
// select true, T, F --> T
// select false, T, F --> F
- if (auto CondC = isBoolConstant(Cond, /*AllowTruncation=*/ true))
+ if (auto CondC = isBoolConstant(Cond, /*AllowTruncation=*/true))
return *CondC ? T : F;
// select ?, T, T --> T
``````````
</details>
https://github.com/llvm/llvm-project/pull/100992
More information about the llvm-commits
mailing list