aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/LoopRotation.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-07-16 17:58:45 +0000
committerDan Gohman <gohman@apple.com>2010-07-16 17:58:45 +0000
commit687cee6bae6255380f01ea6d5608f2d16cd62603 (patch)
tree0b0672c427eb7b797dd7539573e206c3ffeb738b /lib/Transforms/Scalar/LoopRotation.cpp
parentb2c1c2be5dbabbbcf75ef4868c57426a64b8db6a (diff)
downloadexternal_llvm-687cee6bae6255380f01ea6d5608f2d16cd62603.zip
external_llvm-687cee6bae6255380f01ea6d5608f2d16cd62603.tar.gz
external_llvm-687cee6bae6255380f01ea6d5608f2d16cd62603.tar.bz2
Reorder the contents of various getAnalysisUsage functions, eliminating
a redundant loopsimplify run from the default -O2 sequence. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108539 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopRotation.cpp')
-rw-r--r--lib/Transforms/Scalar/LoopRotation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Transforms/Scalar/LoopRotation.cpp b/lib/Transforms/Scalar/LoopRotation.cpp
index 16c4a15..3134377 100644
--- a/lib/Transforms/Scalar/LoopRotation.cpp
+++ b/lib/Transforms/Scalar/LoopRotation.cpp
@@ -43,15 +43,15 @@ namespace {
// LCSSA form makes instruction renaming easier.
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
+ AU.addPreserved<DominatorTree>();
+ AU.addPreserved<DominanceFrontier>();
+ AU.addRequired<LoopInfo>();
+ AU.addPreserved<LoopInfo>();
AU.addRequiredID(LoopSimplifyID);
AU.addPreservedID(LoopSimplifyID);
AU.addRequiredID(LCSSAID);
AU.addPreservedID(LCSSAID);
AU.addPreserved<ScalarEvolution>();
- AU.addRequired<LoopInfo>();
- AU.addPreserved<LoopInfo>();
- AU.addPreserved<DominatorTree>();
- AU.addPreserved<DominanceFrontier>();
}
// Helper functions