As commented on D67557 we have a lot of uses of depth checks all using magic numbers.
This patch adds the SelectionDAG::MaxRecursionDepth constant and moves over some general cases to use this explicitly.
Paths
| Differential D67711
[DAG] Add SelectionDAG::MaxRecursionDepth constant ClosedPublic Authored by RKSimon on Sep 18 2019, 8:02 AM.
Details Summary As commented on D67557 we have a lot of uses of depth checks all using magic numbers. This patch adds the SelectionDAG::MaxRecursionDepth constant and moves over some general cases to use this explicitly.
Diff Detail
Event TimelineComment Actions LGTM
This revision is now accepted and ready to land.Sep 19 2019, 4:59 AM Closed by commit rL372315: [DAG] Add SelectionDAG::MaxRecursionDepth constant (authored by RKSimon). · Explain WhySep 19 2019, 6:00 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 220847 llvm/trunk/include/llvm/CodeGen/SelectionDAG.h
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/trunk/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
|