[llvm] [DAGCombiner] infer wrap flags for trunc, use to fold itofp (PR #148729)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 15 07:48:34 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/include/llvm/CodeGen/SelectionDAGNodes.h llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
index f27bf2ead..7edc9a5db 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -479,9 +479,7 @@ public:
bool operator==(const SDNodeFlags &Other) const {
return Flags == Other.Flags;
}
- bool operator!=(const SDNodeFlags &Other) const {
- return !operator==(Other);
- }
+ bool operator!=(const SDNodeFlags &Other) const { return !operator==(Other); }
void operator&=(const SDNodeFlags &OtherFlags) { Flags &= OtherFlags.Flags; }
void operator|=(const SDNodeFlags &OtherFlags) { Flags |= OtherFlags.Flags; }
};
``````````
</details>
https://github.com/llvm/llvm-project/pull/148729
More information about the llvm-commits
mailing list