@@ -19891,8 +19891,8 @@ static SDValue getSETCC(X86::CondCode Cond, SDValue EFLAGS, const SDLoc &dl,
19891
19891
19892
19892
/// Helper for matching OR(EXTRACTELT(X,0),OR(EXTRACTELT(X,1),...))
19893
19893
/// style scalarized (associative) reduction patterns.
19894
- static bool matchBitOpReduction (SDValue Op, ISD::NodeType BinOp,
19895
- SmallVectorImpl<SDValue> &SrcOps) {
19894
+ static bool matchScalarReduction (SDValue Op, ISD::NodeType BinOp,
19895
+ SmallVectorImpl<SDValue> &SrcOps) {
19896
19896
SmallVector<SDValue, 8> Opnds;
19897
19897
DenseMap<SDValue, APInt> SrcOpMap;
19898
19898
EVT VT = MVT::Other;
@@ -19965,7 +19965,7 @@ static SDValue LowerVectorAllZeroTest(SDValue Op, ISD::CondCode CC,
19965
19965
return SDValue();
19966
19966
19967
19967
SmallVector<SDValue, 8> VecIns;
19968
- if (!matchBitOpReduction (Op, ISD::OR, VecIns))
19968
+ if (!matchScalarReduction (Op, ISD::OR, VecIns))
19969
19969
return SDValue();
19970
19970
19971
19971
// Quit if not 128/256-bit vector.
@@ -39129,7 +39129,7 @@ static SDValue combineAnd(SDNode *N, SelectionDAG &DAG,
39129
39129
// TODO: Support multiple SrcOps.
39130
39130
if (VT == MVT::i1) {
39131
39131
SmallVector<SDValue, 2> SrcOps;
39132
- if (matchBitOpReduction (SDValue(N, 0), ISD::AND, SrcOps) &&
39132
+ if (matchScalarReduction (SDValue(N, 0), ISD::AND, SrcOps) &&
39133
39133
SrcOps.size() == 1) {
39134
39134
SDLoc dl(N);
39135
39135
unsigned NumElts = SrcOps[0].getValueType().getVectorNumElements();
0 commit comments