[X86] detectZextAbsDiff - use m_SpecificVectorElementVT matcher. NFC. (#146498)
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 01f309d..232d055 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -45998,12 +45998,11 @@
using namespace SDPatternMatch;
// Check if the operands of the sub are zero-extended from vectors of i8.
- EVT SrcVT0, SrcVT1;
- return sd_match(Abs,
- m_Abs(m_Sub(m_AllOf(m_Value(Op0), m_ZExt(m_VT(SrcVT0))),
- m_AllOf(m_Value(Op1), m_ZExt(m_VT(SrcVT1)))))) &&
- SrcVT0.getVectorElementType() == MVT::i8 &&
- SrcVT1.getVectorElementType() == MVT::i8;
+ return sd_match(
+ Abs,
+ m_Abs(m_Sub(
+ m_AllOf(m_Value(Op0), m_ZExt(m_SpecificVectorElementVT(MVT::i8))),
+ m_AllOf(m_Value(Op1), m_ZExt(m_SpecificVectorElementVT(MVT::i8))))));
}
static SDValue createVPDPBUSD(SelectionDAG &DAG, SDValue LHS, SDValue RHS,