[llvm] [TargetLowering] Make optimizeSetCCByHoistingAndByConstFromLogicalShift a static function. NFC (PR #104171)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 14 12:03:16 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 9e8706140440d79bb7040d5461e9d31ea75cc7bb f2b2a26d7a518ebda1a1bda6d6d9539d8d3383eb --extensions cpp,h -- llvm/include/llvm/CodeGen/TargetLowering.h llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index e29b72bcc3..978ce4a620 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -4176,8 +4176,8 @@ SDValue TargetLowering::optimizeSetCCOfSignedTruncationCheck(
// (X & (C l>>/<< Y)) ==/!= 0 --> ((X <</l>> Y) & C) ==/!= 0
static SDValue optimizeSetCCByHoistingAndByConstFromLogicalShift(
- EVT SCCVT, SDValue N0, SDValue N1C, ISD::CondCode Cond,
- SelectionDAG &DAG, const SDLoc &DL) {
+ EVT SCCVT, SDValue N0, SDValue N1C, ISD::CondCode Cond, SelectionDAG &DAG,
+ const SDLoc &DL) {
assert(isConstOrConstSplat(N1C) && isConstOrConstSplat(N1C)->isZero() &&
"Should be a comparison with 0.");
assert((Cond == ISD::SETEQ || Cond == ISD::SETNE) &&
``````````
</details>
https://github.com/llvm/llvm-project/pull/104171
More information about the llvm-commits
mailing list