[X86] X86DAGToDAGISel::matchIndexRecursively - replace hard coded recursion limit with SelectionDAG::MaxRecursionDepth. NFCI.

This commit is contained in:
Simon Pilgrim 2023-09-20 14:51:51 +01:00
parent d297399b35
commit 27d4f229ad

View File

@ -2700,7 +2700,7 @@ bool X86DAGToDAGISel::matchVectorAddressRecursively(SDValue N,
AM.dump(CurDAG);
});
// Limit recursion.
if (Depth > 5)
if (Depth >= SelectionDAG::MaxRecursionDepth)
return matchAddressBase(N, AM);
// TODO: Support other operations.