Skip to content

Commit 56ab4b0

Browse files
author
git apple-llvm automerger
committed
Merge commit '7c15c4fb1745' from llvm.org/master into apple/master
2 parents d87535e + 7c15c4f commit 56ab4b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19891,8 +19891,8 @@ static SDValue getSETCC(X86::CondCode Cond, SDValue EFLAGS, const SDLoc &dl,
1989119891

1989219892
/// Helper for matching OR(EXTRACTELT(X,0),OR(EXTRACTELT(X,1),...))
1989319893
/// 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) {
1989619896
SmallVector<SDValue, 8> Opnds;
1989719897
DenseMap<SDValue, APInt> SrcOpMap;
1989819898
EVT VT = MVT::Other;
@@ -19965,7 +19965,7 @@ static SDValue LowerVectorAllZeroTest(SDValue Op, ISD::CondCode CC,
1996519965
return SDValue();
1996619966

1996719967
SmallVector<SDValue, 8> VecIns;
19968-
if (!matchBitOpReduction(Op, ISD::OR, VecIns))
19968+
if (!matchScalarReduction(Op, ISD::OR, VecIns))
1996919969
return SDValue();
1997019970

1997119971
// Quit if not 128/256-bit vector.
@@ -39129,7 +39129,7 @@ static SDValue combineAnd(SDNode *N, SelectionDAG &DAG,
3912939129
// TODO: Support multiple SrcOps.
3913039130
if (VT == MVT::i1) {
3913139131
SmallVector<SDValue, 2> SrcOps;
39132-
if (matchBitOpReduction(SDValue(N, 0), ISD::AND, SrcOps) &&
39132+
if (matchScalarReduction(SDValue(N, 0), ISD::AND, SrcOps) &&
3913339133
SrcOps.size() == 1) {
3913439134
SDLoc dl(N);
3913539135
unsigned NumElts = SrcOps[0].getValueType().getVectorNumElements();

0 commit comments

Comments
 (0)