diff options
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopRotation.cpp | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/llvm/lib/Transforms/Scalar/LoopRotation.cpp b/llvm/lib/Transforms/Scalar/LoopRotation.cpp index 807d463abb8..2a7b06c6c3f 100644 --- a/llvm/lib/Transforms/Scalar/LoopRotation.cpp +++ b/llvm/lib/Transforms/Scalar/LoopRotation.cpp @@ -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>();      } | 

