diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-01-04 08:48:49 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-01-04 08:48:49 +0000 |
commit | 3bf5603ce49d7b9623596b9f6e32d5d5dc207acf (patch) | |
tree | d3ebe900fa2328ef09a08121584e81456703f7c3 /llvm/lib/CodeGen/MachineLICM.cpp | |
parent | 66470d02c3baee7d6e0dd849cd550fc8372f21db (diff) | |
download | bcm5719-llvm-3bf5603ce49d7b9623596b9f6e32d5d5dc207acf.tar.gz bcm5719-llvm-3bf5603ce49d7b9623596b9f6e32d5d5dc207acf.zip |
Add that this preserves some analyses.
llvm-svn: 45573
Diffstat (limited to 'llvm/lib/CodeGen/MachineLICM.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineLICM.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineLICM.cpp b/llvm/lib/CodeGen/MachineLICM.cpp index e6b9c76e9cd..94e10611226 100644 --- a/llvm/lib/CodeGen/MachineLICM.cpp +++ b/llvm/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 |