[llvm] 98e31b7 - [AArch64] Cleanup SDValue(N,0) to Op in tablegen PatFrag. NFC

David Green via llvm-commits llvm-commits at lists.llvm.org
Fri May 2 06:30:20 PDT 2025


Author: David Green
Date: 2025-05-02T14:30:15+01:00
New Revision: 98e31b75f1ad7bd838d11b1ab5f610965ed6e64e

URL: https://github.com/llvm/llvm-project/commit/98e31b75f1ad7bd838d11b1ab5f610965ed6e64e
DIFF: https://github.com/llvm/llvm-project/commit/98e31b75f1ad7bd838d11b1ab5f610965ed6e64e.diff

LOG: [AArch64] Cleanup SDValue(N,0) to Op in tablegen PatFrag. NFC

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64InstrInfo.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.td b/llvm/lib/Target/AArch64/AArch64InstrInfo.td
index a75091b853d21..3962c7eba5833 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.td
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.td
@@ -1052,9 +1052,9 @@ def AArch64CttzElts : SDNode<"AArch64ISD::CTTZ_ELTS", SDTypeProfile<1, 1,
 // have no common bits.
 def add_and_or_is_add : PatFrags<(ops node:$lhs, node:$rhs),
                          [(add node:$lhs, node:$rhs), (or node:$lhs, node:$rhs)],[{
-   if (N->getOpcode() == ISD::ADD)
+   if (Op.getOpcode() == ISD::ADD)
      return true;
-   return CurDAG->isADDLike(SDValue(N,0));
+   return CurDAG->isADDLike(Op);
 }]> {
   let GISelPredicateCode = [{
      return mi_match(MI, MRI, m_GAddLike(m_Reg(), m_Reg()));


        


More information about the llvm-commits mailing list