Skip to content

Commit 27d4f22

Browse files
committed
[X86] X86DAGToDAGISel::matchIndexRecursively - replace hard coded recursion limit with SelectionDAG::MaxRecursionDepth. NFCI.
1 parent d297399 commit 27d4f22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86ISelDAGToDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2700,7 +2700,7 @@ bool X86DAGToDAGISel::matchVectorAddressRecursively(SDValue N,
27002700
AM.dump(CurDAG);
27012701
});
27022702
// Limit recursion.
2703-
if (Depth > 5)
2703+
if (Depth >= SelectionDAG::MaxRecursionDepth)
27042704
return matchAddressBase(N, AM);
27052705

27062706
// TODO: Support other operations.

0 commit comments

Comments
 (0)