summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/OptionGroupVariable.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2011-07-07 04:31:51 +0000
committerLang Hames <lhames@gmail.com>2011-07-07 04:31:51 +0000
commit5a00499e873277a7bb842dcab7f99baf09fc4595 (patch)
tree1eea87d6a68ae5032310eef970068ff52ae7fe0c /lldb/source/Interpreter/OptionGroupVariable.cpp
parentc44b93d772e400902819e8413764a741f9ef7ef6 (diff)
downloadbcm5719-llvm-5a00499e873277a7bb842dcab7f99baf09fc4595.tar.gz
bcm5719-llvm-5a00499e873277a7bb842dcab7f99baf09fc4595.zip
Add functions 'hasPredecessor' and 'hasPredecessorHelper' to SDNode. The
hasPredecessorHelper function allows predecessors to be cached to speed up repeated invocations. This fixes PR10186. X.isPredecessorOf(Y) now just calls Y.hasPredecessor(X) Y.hasPredecessor(X) calls Y.hasPredecessorHelper(X, Visited, Worklist) with empty Visited and Worklist sets (i.e. no caching over invocations). Y.hasPredecessorHelper(X, Visited, Worklist) caches search state in Visited and Worklist to speed up repeated calls. The Visited set is searched for X before going to the worklist to further search the DAG if necessary. llvm-svn: 134592
Diffstat (limited to 'lldb/source/Interpreter/OptionGroupVariable.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud