[PlaceSafepoints] Use analysis infrastructure to get dominator tree
authorPhilip Reames <listmail@philipreames.com>
Tue, 12 May 2015 20:56:33 +0000 (20:56 +0000)
committerPhilip Reames <listmail@philipreames.com>
Tue, 12 May 2015 20:56:33 +0000 (20:56 +0000)
commit62143472948f26df4b5ba3dfec4c3d831ce6c9cc
tree9eb52b2a5458ec9b3c635d996228c765feb130ef
parent0d8dadf96e10b2409b981a39b53c41be6ce3db31
[PlaceSafepoints] Use analysis infrastructure to get dominator tree

The old code computed dominators for every loop. This was terribly slow with no good reason. Just use the standard infrastructure for analysis passes.

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

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