diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-16 17:58:45 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-16 17:58:45 +0000 |
commit | efd7f9c360ae90b4111030d94477579a8c8f79c5 (patch) | |
tree | f9675423198384e17c39ef32c9d8227284afd144 /llvm/lib/Transforms/Utils/LCSSA.cpp | |
parent | 1e936277c30f8c3df7fca5b52e7af2dd7bd474cb (diff) | |
download | llvm-efd7f9c360ae90b4111030d94477579a8c8f79c5.zip llvm-efd7f9c360ae90b4111030d94477579a8c8f79c5.tar.gz llvm-efd7f9c360ae90b4111030d94477579a8c8f79c5.tar.bz2 |
Reorder the contents of various getAnalysisUsage functions, eliminating
a redundant loopsimplify run from the default -O2 sequence.
llvm-svn: 108539
Diffstat (limited to 'llvm/lib/Transforms/Utils/LCSSA.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LCSSA.cpp | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/llvm/lib/Transforms/Utils/LCSSA.cpp b/llvm/lib/Transforms/Utils/LCSSA.cpp index e90c30bb..5967cb9 100644 --- a/llvm/lib/Transforms/Utils/LCSSA.cpp +++ b/llvm/lib/Transforms/Utils/LCSSA.cpp @@ -64,22 +64,18 @@ namespace { virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesCFG(); + AU.addRequiredTransitive<DominatorTree>(); + AU.addPreserved<DominatorTree>(); + AU.addPreserved<DominanceFrontier>(); + AU.addRequiredTransitive<LoopInfo>(); + AU.addPreserved<LoopInfo>(); + // LCSSA doesn't actually require LoopSimplify, but the PassManager // doesn't know how to schedule LoopSimplify by itself. AU.addRequiredID(LoopSimplifyID); AU.addPreservedID(LoopSimplifyID); - AU.addRequiredTransitive<LoopInfo>(); - AU.addPreserved<LoopInfo>(); - AU.addRequiredTransitive<DominatorTree>(); - AU.addPreserved<ScalarEvolution>(); - AU.addPreserved<DominatorTree>(); - // Request DominanceFrontier now, even though LCSSA does - // not use it. This allows Pass Manager to schedule Dominance - // Frontier early enough such that one LPPassManager can handle - // multiple loop transformation passes. - AU.addRequired<DominanceFrontier>(); - AU.addPreserved<DominanceFrontier>(); + AU.addPreserved<ScalarEvolution>(); } private: bool ProcessInstruction(Instruction *Inst, |