[llvm] [X86] EmitCmp - use existing XOR node to check for equality (PR #125506)

via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 3 06:34:33 PST 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 9216419843bcd2bf5b68053b5311c683073e55e1 e58edd493544a5f19dae0cfb14e1f2708ca87ab1 --extensions cpp -- llvm/lib/Target/X86/X86ISelLowering.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 662da7df11..e3931e4790 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -23163,7 +23163,7 @@ static SDValue EmitCmp(SDValue Op0, SDValue Op1, unsigned X86CC,
   if ((X86CC == X86::COND_E || X86CC == X86::COND_NE) &&
       (DAG.doesNodeExist(ISD::XOR, DAG.getVTList({CmpVT}), {Op0, Op1}) ||
        DAG.doesNodeExist(ISD::XOR, DAG.getVTList({CmpVT}), {Op1, Op0})))
-    X86Opc = X86ISD::XOR; 
+    X86Opc = X86ISD::XOR;
 
   SDVTList VTs = DAG.getVTList(CmpVT, MVT::i32);
   SDValue CmpOp = DAG.getNode(X86Opc, dl, VTs, Op0, Op1);

``````````

</details>


https://github.com/llvm/llvm-project/pull/125506


More information about the llvm-commits mailing list