[PM] Refactor how the LoopRotation pass access the DominatorTree.
authorChandler Carruth <chandlerc@gmail.com>
Sun, 18 Jan 2015 02:08:05 +0000 (02:08 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 18 Jan 2015 02:08:05 +0000 (02:08 +0000)
commitd39e52bef744dfc4d8f5dc95d4227c34f9d06ddb
tree6f15f680594a03a3b18b2976cea4971906a9d6d4
parentb7f66977be8f5248b1638b796d8abff4b24e7915
[PM] Refactor how the LoopRotation pass access the DominatorTree.

Instead of querying the pass every where we need to, do that once and
cache a pointer in the pass object. This is both simpler and I'm about
to add yet another place where we need to dig out that pointer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226391 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopRotation.cpp