[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)
commit57bdac96d9abbf08e8a7d181070daf9350fad077
tree7180642cf9156f39771ac4dbed3b6eb337c85da2
parentb465563b46ac9ebbbe3c6993a010a17b79d460be
[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

llvm-svn: 237176
llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp