From 7be06f9158bb139b88d68fc5f149018db88dc6a0 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 6 Jul 2007 21:43:22 +0000 Subject: [PATCH] Request DominanceFrontiner in advance. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37954 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/LoopRotation.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Transforms/Scalar/LoopRotation.cpp b/lib/Transforms/Scalar/LoopRotation.cpp index 807d463abb8..2a7b06c6c3f 100644 --- a/lib/Transforms/Scalar/LoopRotation.cpp +++ b/lib/Transforms/Scalar/LoopRotation.cpp @@ -63,6 +63,11 @@ namespace { AU.addRequiredID(LoopSimplifyID); AU.addPreservedID(LoopSimplifyID); AU.addPreserved(); + // 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(); AU.addPreserved(); } -- 2.34.1