Skip to content

Commit fd46e40

Browse files
authored
[X86] detectZextAbsDiff - use m_SpecificVectorElementVT matcher. NFC. (#146498)
1 parent 37d30d9 commit fd46e40

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45998,12 +45998,11 @@ static bool detectZextAbsDiff(SDValue Abs, SDValue &Op0, SDValue &Op1) {
4599845998
using namespace SDPatternMatch;
4599945999

4600046000
// Check if the operands of the sub are zero-extended from vectors of i8.
46001-
EVT SrcVT0, SrcVT1;
46002-
return sd_match(Abs,
46003-
m_Abs(m_Sub(m_AllOf(m_Value(Op0), m_ZExt(m_VT(SrcVT0))),
46004-
m_AllOf(m_Value(Op1), m_ZExt(m_VT(SrcVT1)))))) &&
46005-
SrcVT0.getVectorElementType() == MVT::i8 &&
46006-
SrcVT1.getVectorElementType() == MVT::i8;
46001+
return sd_match(
46002+
Abs,
46003+
m_Abs(m_Sub(
46004+
m_AllOf(m_Value(Op0), m_ZExt(m_SpecificVectorElementVT(MVT::i8))),
46005+
m_AllOf(m_Value(Op1), m_ZExt(m_SpecificVectorElementVT(MVT::i8))))));
4600746006
}
4600846007

4600946008
static SDValue createVPDPBUSD(SelectionDAG &DAG, SDValue LHS, SDValue RHS,

0 commit comments

Comments
 (0)