Efficient way to recursively calculate dominator tree?

前端 未结 4 926
渐次进展
渐次进展 2021-02-05 11:22

I\'m using the Lengauer and Tarjan algorithm with path compression to calculate the dominator tree for a graph where there are millions of nodes. The algorithm is quite complex

4条回答
  •  醉话见心
    2021-02-05 12:01

    I do not fully understand your question, but it seems to me you want to have some incremental update feature. I researched a while ago what algorithms are their but it seemed to me that there's no known way for large graphs to do this quickly (at least from a theoretical standpoint).

    You may just search for "incremental updates dominator tree" to find some references.

    I guess you are aware the Eclipse Memory Analyzer does use dominator trees, so this topic is not completely "owned" by the compiler community anymore :)

提交回复
热议问题