Skip to content

Commit 4772c66

Browse files
committed
[X86] Use explicit ArrayRef<int> template arg to fix clang6 template deduction failure
Fixes llvm#64782
1 parent 0501102 commit 4772c66

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40300,7 +40300,7 @@ static SDValue combineTargetShuffle(SDValue N, SelectionDAG &DAG,
4030040300
// See if this reduces to a PSHUFD which is no more expensive and can
4030140301
// combine with more operations. Note that it has to at least flip the
4030240302
// dwords as otherwise it would have been removed as a no-op.
40303-
if (ArrayRef(Mask).equals({2, 3, 0, 1})) {
40303+
if (ArrayRef<int>(Mask).equals({2, 3, 0, 1})) {
4030440304
int DMask[] = {0, 1, 2, 3};
4030540305
int DOffset = N.getOpcode() == X86ISD::PSHUFLW ? 0 : 2;
4030640306
DMask[DOffset + 0] = DOffset + 1;
@@ -40335,8 +40335,8 @@ static SDValue combineTargetShuffle(SDValue N, SelectionDAG &DAG,
4033540335
int MappedMask[8];
4033640336
for (int i = 0; i < 8; ++i)
4033740337
MappedMask[i] = 2 * DMask[WordMask[i] / 2] + WordMask[i] % 2;
40338-
if (ArrayRef(MappedMask).equals({0, 0, 1, 1, 2, 2, 3, 3}) ||
40339-
ArrayRef(MappedMask).equals({4, 4, 5, 5, 6, 6, 7, 7})) {
40338+
if (ArrayRef<int>(MappedMask).equals({0, 0, 1, 1, 2, 2, 3, 3}) ||
40339+
ArrayRef<int>(MappedMask).equals({4, 4, 5, 5, 6, 6, 7, 7})) {
4034040340
// We can replace all three shuffles with an unpack.
4034140341
V = DAG.getBitcast(VT, D.getOperand(0));
4034240342
return DAG.getNode(MappedMask[0] == 0 ? X86ISD::UNPCKL

0 commit comments

Comments
 (0)