aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-01-04 08:48:49 +0000
committerBill Wendling <isanbard@gmail.com>2008-01-04 08:48:49 +0000
commitd5da7048c297deb6137ad10cac217c5d9d702065 (patch)
tree8fe4fdac86e6eab18e732473e0fa64eea5fcaca5
parentcc8f603f531c906782e4966107ae29667eb6632c (diff)
downloadexternal_llvm-d5da7048c297deb6137ad10cac217c5d9d702065.tar.gz
external_llvm-d5da7048c297deb6137ad10cac217c5d9d702065.tar.bz2
external_llvm-d5da7048c297deb6137ad10cac217c5d9d702065.zip
Add that this preserves some analyses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45573 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/MachineLICM.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineLICM.cpp b/lib/CodeGen/MachineLICM.cpp
index e6b9c76e9c..94e1061122 100644
--- a/lib/CodeGen/MachineLICM.cpp
+++ b/lib/CodeGen/MachineLICM.cpp
@@ -53,10 +53,12 @@ namespace {
/// FIXME: Loop preheaders?
///
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
- MachineFunctionPass::getAnalysisUsage(AU);
AU.setPreservesCFG();
AU.addRequired<MachineLoopInfo>();
AU.addRequired<MachineDominatorTree>();
+ AU.addPreserved<MachineLoopInfo>();
+ AU.addPreserved<MachineDominatorTree>();
+ MachineFunctionPass::getAnalysisUsage(AU);
}
private:
/// VisitAllLoops - Visit all of the loops in depth first order and try to