Move IDF Calculation to a separate file, expose an interface to it.
authorDaniel Berlin <dberlin@dberlin.org>
Tue, 21 Apr 2015 19:13:02 +0000 (19:13 +0000)
committerDaniel Berlin <dberlin@dberlin.org>
Tue, 21 Apr 2015 19:13:02 +0000 (19:13 +0000)
commit29dbbd73de46d769517d2d708fabf4671cfde557
treebe2c5d5b09a5e78551b46bea31faa3d3a1189892
parentfb32d5211670afc689e12f46840cc769bc478d67
Move IDF Calculation to a separate file, expose an interface to it.

Summary:
MemorySSA uses this algorithm as well, and this enables us to reuse the code in both places.

There are no actual algorithm or datastructure changes in here, just code movement.

Reviewers: qcolombet, chandlerc

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D9118

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235406 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/IteratedDominanceFrontier.h [new file with mode: 0644]
lib/Analysis/CMakeLists.txt
lib/Analysis/IteratedDominanceFrontier.cpp [new file with mode: 0644]
lib/Transforms/Utils/PromoteMemoryToRegister.cpp