Request DominanceFrontiner in advance.
authorDevang Patel <dpatel@apple.com>
Fri, 6 Jul 2007 21:43:22 +0000 (21:43 +0000)
committerDevang Patel <dpatel@apple.com>
Fri, 6 Jul 2007 21:43:22 +0000 (21:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37954 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopRotation.cpp

index 807d463abb8351b92f9a9ac9805e488018582cf7..2a7b06c6c3fe201adf599812df4cfd866bd0cb17 100644 (file)
@@ -63,6 +63,11 @@ namespace {
       AU.addRequiredID(LoopSimplifyID);
       AU.addPreservedID(LoopSimplifyID);
       AU.addPreserved<DominatorTree>();
+      // Request DominanceFrontier now, even though Loop Rotate does
+      // not use it. This allows Pass Manager to schedule Dominance
+      // Frontier early enough such that one LPPassManager can handle
+      // loop rotate as well as licm pass.
+      AU.addRequired<DominanceFrontier>(); 
       AU.addPreserved<DominanceFrontier>();
     }