forked from OSchip/llvm-project
[X86] combineX86ShufflesRecursively - assert the root mask is legal. NFCI.
This commit is contained in:
parent
a9c3c176ad
commit
a4d55a2c36
|
@ -33026,6 +33026,9 @@ static SDValue combineX86ShufflesRecursively(
|
|||
ArrayRef<int> RootMask, ArrayRef<const SDNode *> SrcNodes, unsigned Depth,
|
||||
bool HasVariableMask, bool AllowVariableMask, SelectionDAG &DAG,
|
||||
const X86Subtarget &Subtarget) {
|
||||
assert(RootMask.size() > 0 && (RootMask.size() > 1 || RootMask[0] == 0) &&
|
||||
"Illegal shuffle root mask");
|
||||
|
||||
// Bound the depth of our recursive combine because this is ultimately
|
||||
// quadratic in nature.
|
||||
const unsigned MaxRecursionDepth = 8;
|
||||
|
|
Loading…
Reference in New Issue