Skip to content

Commit 98e31b7

Browse files
committed
[AArch64] Cleanup SDValue(N,0) to Op in tablegen PatFrag. NFC
1 parent a4ceac7 commit 98e31b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AArch64/AArch64InstrInfo.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,9 +1052,9 @@ def AArch64CttzElts : SDNode<"AArch64ISD::CTTZ_ELTS", SDTypeProfile<1, 1,
10521052
// have no common bits.
10531053
def add_and_or_is_add : PatFrags<(ops node:$lhs, node:$rhs),
10541054
[(add node:$lhs, node:$rhs), (or node:$lhs, node:$rhs)],[{
1055-
if (N->getOpcode() == ISD::ADD)
1055+
if (Op.getOpcode() == ISD::ADD)
10561056
return true;
1057-
return CurDAG->isADDLike(SDValue(N,0));
1057+
return CurDAG->isADDLike(Op);
10581058
}]> {
10591059
let GISelPredicateCode = [{
10601060
return mi_match(MI, MRI, m_GAddLike(m_Reg(), m_Reg()));

0 commit comments

Comments
 (0)