mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-01 12:43:47 +00:00
[X86] X86DAGToDAGISel::matchIndexRecursively - replace hard coded recursion limit with SelectionDAG::MaxRecursionDepth. NFCI.
This commit is contained in:
parent
d297399b35
commit
27d4f229ad
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user