now that it doesn't use the PromoteMemToReg function, LICM doesn't

require DomFrontier.  Dropping this doesn't actually save any runs
of the pass though.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112418 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-08-29 06:49:44 +00:00
parent e488064922
commit 44e2bd31f1

View File

@ -75,7 +75,6 @@ namespace {
virtual void getAnalysisUsage(AnalysisUsage &AU) const { virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesCFG(); AU.setPreservesCFG();
AU.addRequired<DominatorTree>(); AU.addRequired<DominatorTree>();
AU.addRequired<DominanceFrontier>(); // For scalar promotion (mem2reg)
AU.addRequired<LoopInfo>(); AU.addRequired<LoopInfo>();
AU.addRequiredID(LoopSimplifyID); AU.addRequiredID(LoopSimplifyID);
AU.addRequired<AliasAnalysis>(); AU.addRequired<AliasAnalysis>();
@ -98,8 +97,7 @@ namespace {
// Various analyses that we use... // Various analyses that we use...
AliasAnalysis *AA; // Current AliasAnalysis information AliasAnalysis *AA; // Current AliasAnalysis information
LoopInfo *LI; // Current LoopInfo LoopInfo *LI; // Current LoopInfo
DominatorTree *DT; // Dominator Tree for the current Loop... DominatorTree *DT; // Dominator Tree for the current Loop.
DominanceFrontier *DF; // Current Dominance Frontier
// State that is updated as we process loops // State that is updated as we process loops
bool Changed; // Set to true when we change anything. bool Changed; // Set to true when we change anything.
@ -222,7 +220,6 @@ bool LICM::runOnLoop(Loop *L, LPPassManager &LPM) {
// Get our Loop and Alias Analysis information... // Get our Loop and Alias Analysis information...
LI = &getAnalysis<LoopInfo>(); LI = &getAnalysis<LoopInfo>();
AA = &getAnalysis<AliasAnalysis>(); AA = &getAnalysis<AliasAnalysis>();
DF = &getAnalysis<DominanceFrontier>();
DT = &getAnalysis<DominatorTree>(); DT = &getAnalysis<DominatorTree>();
CurAST = new AliasSetTracker(*AA); CurAST = new AliasSetTracker(*AA);