Skip to content

Commit 34a4894

Browse files
committed
[X86] detectZextAbsDiff - use SDPatternMatch::m_Abs() matcher. NFC.
1 parent d8e8ab7 commit 34a4894

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46009,11 +46009,9 @@ static bool detectZextAbsDiff(SDValue Abs, SDValue &Op0, SDValue &Op1) {
4600946009

4601046010
// Check if the operands of the sub are zero-extended from vectors of i8.
4601146011
EVT SrcVT0, SrcVT1;
46012-
return sd_match(
46013-
Abs,
46014-
m_UnaryOp(ISD::ABS,
46015-
m_Sub(m_AllOf(m_Value(Op0), m_ZExt(m_VT(SrcVT0))),
46016-
m_AllOf(m_Value(Op1), m_ZExt(m_VT(SrcVT1)))))) &&
46012+
return sd_match(Abs,
46013+
m_Abs(m_Sub(m_AllOf(m_Value(Op0), m_ZExt(m_VT(SrcVT0))),
46014+
m_AllOf(m_Value(Op1), m_ZExt(m_VT(SrcVT1)))))) &&
4601746015
SrcVT0.getVectorElementType() == MVT::i8 &&
4601846016
SrcVT1.getVectorElementType() == MVT::i8;
4601946017
}

0 commit comments

Comments
 (0)