]> granicus.if.org Git - llvm/commit
[DAG] Add SelectionDAG::MaxRecursionDepth constant
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 19 Sep 2019 12:58:43 +0000 (12:58 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 19 Sep 2019 12:58:43 +0000 (12:58 +0000)
commit23be00fbf32581880e46018f041d9551ac9a1aa7
tree8e98ae9bc7d988a9a197ab9b68aa200f53d2c527
parent0c2a34c502049a49c38d42dd3261a8704d73552b
[DAG] Add SelectionDAG::MaxRecursionDepth constant

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.

Differential Revision: https://reviews.llvm.org/D67711

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372315 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAG.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/CodeGen/SelectionDAG/TargetLowering.cpp
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp