projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc8f603
)
Add that this preserves some analyses.
author
Bill Wendling
<isanbard@gmail.com>
Fri, 4 Jan 2008 08:48:49 +0000
(08:48 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Fri, 4 Jan 2008 08:48:49 +0000
(08:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45573
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/MachineLICM.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachineLICM.cpp
b/lib/CodeGen/MachineLICM.cpp
index e6b9c76e9cd3c58691051b55e17e3e094fcec3f5..94e10611226d84e7535fd0fd064edc46b82bb5dd 100644
(file)
--- 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