This is an archive of the discontinued LLVM Phabricator instance.

[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

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Sep 18 2019, 8:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 18 2019, 8:02 AM
Herald added a subscriber: wdng. · View Herald Transcript
spatel accepted this revision.Sep 19 2019, 4:59 AM

LGTM

include/llvm/CodeGen/SelectionDAG.h
393 ↗(On Diff #220671)

"Maximum depth for recursive analysis such as computeKnownBits, etc." ?

This revision is now accepted and ready to land.Sep 19 2019, 4:59 AM
This revision was automatically updated to reflect the committed changes.