Skip to content

Commit ceabaa7

Browse files
committed
[DAG] Fix some missing formatting when I rewrote the SUB(MAX,MIN) -> ABD patterns. NFC.
1 parent 74c3150 commit ceabaa7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4024,13 +4024,13 @@ SDValue DAGCombiner::visitSUB(SDNode *N) {
40244024
}
40254025

40264026
// smax(a,b) - smin(a,b) --> abds(a,b)
4027-
if (hasOperation(ISD::ABDS, VT) &&
4027+
if (hasOperation(ISD::ABDS, VT) &&
40284028
sd_match(N0, m_SMax(m_Value(A), m_Value(B))) &&
40294029
sd_match(N1, m_SMin(m_Specific(A), m_Specific(B))))
40304030
return DAG.getNode(ISD::ABDS, DL, VT, A, B);
40314031

40324032
// umax(a,b) - umin(a,b) --> abdu(a,b)
4033-
if (hasOperation(ISD::ABDU, VT) &&
4033+
if (hasOperation(ISD::ABDU, VT) &&
40344034
sd_match(N0, m_UMax(m_Value(A), m_Value(B))) &&
40354035
sd_match(N1, m_UMin(m_Specific(A), m_Specific(B))))
40364036
return DAG.getNode(ISD::ABDU, DL, VT, A, B);

0 commit comments

Comments
 (0)