[llvm] [DAGCombiner] Be more careful about looking through extends and trunc… (PR #91375)
via llvm-commits
llvm-commits at lists.llvm.org
Tue May 7 11:25:41 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 026a29e8b38aad79568de033d0e8e5d2e6bb4250 f22ab21ee49da71e7a42d8e575cf856e5e62001a -- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 547a571ea2..e835bd950a 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -8858,7 +8858,8 @@ SDValue DAGCombiner::mergeTruncStores(StoreSDNode *N) {
stripTruncAndExt(WideVal) != SourceValue)
return SDValue();
- if (WideVal.getScalarValueSizeInBits() > SourceValue.getScalarValueSizeInBits())
+ if (WideVal.getScalarValueSizeInBits() >
+ SourceValue.getScalarValueSizeInBits())
SourceValue = WideVal;
// Give up if the source value type is smaller than the store size.
``````````
</details>
https://github.com/llvm/llvm-project/pull/91375
More information about the llvm-commits
mailing list